diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-09 15:14:22 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-09 15:14:22 +0000 |
commit | 071c7de9fed67209f73c5928da85b1dbb69a30ce (patch) | |
tree | 5bd6b22debae5681bd65c66901a64289ca907fc0 | |
parent | 3e7ebcd0513d4f55b8fc552a0791c60fe5af0c34 (diff) |
removed curl_read() and curl_write() - they weren't used and the public
"low leve" interface is dumped
-rw-r--r-- | lib/sendf.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index ccae9928a..ca5cd1d12 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -213,23 +213,6 @@ CURLcode Curl_write(struct connectdata *conn, int sockfd, return CURLE_OK; } -/* - * External write-function, writes to the data-socket. - * Takes care of plain sockets, SSL or kerberos transparently. - */ -CURLcode curl_write(CURLconnect *c_conn, char *buf, size_t amount, - size_t *n) -{ - struct connectdata *conn = (struct connectdata *)c_conn; - - if(!n || !conn || (conn->handle != STRUCT_CONNECT)) - return CURLE_FAILED_INIT; - - return Curl_write(conn, conn->sockfd, buf, amount, n); -} - - - /* client_write() sends data to the write callback(s) The bit pattern defines to what "streams" to write to. Body and/or header. @@ -299,19 +282,3 @@ CURLcode Curl_read(struct connectdata *conn, int sockfd, return CURLE_OK; } -/* - * The public read function reads from the 'sockfd' file descriptor only. - * Use the Curl_read() internally when you want to specify fd. - */ - -CURLcode curl_read(CURLconnect *c_conn, char *buf, size_t buffersize, - ssize_t *n) -{ - struct connectdata *conn = (struct connectdata *)c_conn; - - if(!n || !conn || (conn->handle != STRUCT_CONNECT)) - return CURLE_FAILED_INIT; - - return Curl_read(conn, conn->sockfd, buf, buffersize, n); -} - |