initial support for "uploading" to file:// URLs

This commit is contained in:
Daniel Stenberg
2004-05-25 21:47:29 +00:00
parent 765754d39d
commit fd802db39f
10 changed files with 177 additions and 29 deletions

View File

@@ -125,8 +125,7 @@ static struct timeval notimeout={0,0};
* This function will call the read callback to fill our buffer with data
* to upload.
*/
static int fillbuffer(struct connectdata *conn,
int bytes)
int Curl_fillreadbuffer(struct connectdata *conn, int bytes)
{
int buffersize = bytes;
int nread;
@@ -1124,7 +1123,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
break;
}
nread = fillbuffer(conn, BUFSIZE);
nread = Curl_fillreadbuffer(conn, BUFSIZE);
}
else
nread = 0; /* we're done uploading/reading */