Go to the documentation of this file.00001 #ifndef HEADER_CURL_SENDF_H
00002 #define HEADER_CURL_SENDF_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "curl_setup.h"
00026
00027 CURLcode Curl_sendf(curl_socket_t sockfd, struct connectdata *,
00028 const char *fmt, ...);
00029 void Curl_infof(struct Curl_easy *, const char *fmt, ...);
00030 void Curl_failf(struct Curl_easy *, const char *fmt, ...);
00031
00032 #if defined(CURL_DISABLE_VERBOSE_STRINGS)
00033
00034 #if defined(HAVE_VARIADIC_MACROS_C99)
00035 #define infof(...) Curl_nop_stmt
00036 #elif defined(HAVE_VARIADIC_MACROS_GCC)
00037 #define infof(x...) Curl_nop_stmt
00038 #else
00039 #define infof (void)
00040 #endif
00041
00042 #else
00043
00044 #define infof Curl_infof
00045
00046 #endif
00047
00048 #define failf Curl_failf
00049
00050 #define CLIENTWRITE_BODY (1<<0)
00051 #define CLIENTWRITE_HEADER (1<<1)
00052 #define CLIENTWRITE_BOTH (CLIENTWRITE_BODY|CLIENTWRITE_HEADER)
00053
00054 CURLcode Curl_client_chop_write(struct connectdata *conn, int type, char *ptr,
00055 size_t len) WARN_UNUSED_RESULT;
00056 CURLcode Curl_client_write(struct connectdata *conn, int type, char *ptr,
00057 size_t len) WARN_UNUSED_RESULT;
00058
00059 bool Curl_recv_has_postponed_data(struct connectdata *conn, int sockindex);
00060
00061
00062 CURLcode Curl_read_plain(curl_socket_t sockfd,
00063 char *buf,
00064 size_t bytesfromsocket,
00065 ssize_t *n);
00066
00067 ssize_t Curl_recv_plain(struct connectdata *conn, int num, char *buf,
00068 size_t len, CURLcode *code);
00069 ssize_t Curl_send_plain(struct connectdata *conn, int num,
00070 const void *mem, size_t len, CURLcode *code);
00071
00072
00073 CURLcode Curl_read(struct connectdata *conn, curl_socket_t sockfd,
00074 char *buf, size_t buffersize,
00075 ssize_t *n);
00076
00077 CURLcode Curl_write(struct connectdata *conn,
00078 curl_socket_t sockfd,
00079 const void *mem, size_t len,
00080 ssize_t *written);
00081
00082
00083 CURLcode Curl_write_plain(struct connectdata *conn,
00084 curl_socket_t sockfd,
00085 const void *mem, size_t len,
00086 ssize_t *written);
00087
00088
00089 int Curl_debug(struct Curl_easy *handle, curl_infotype type,
00090 char *data, size_t size,
00091 struct connectdata *conn);
00092
00093
00094 #endif