Home
last modified time | relevance | path

Searched refs:curl_socket_t (Results 1 – 25 of 88) sorted by relevance

1234

/external/curl/lib/
Dmemdebug.c341 curl_socket_t curl_socket(int domain, int type, int protocol, in curl_socket()
344 const char *fmt = (sizeof(curl_socket_t) == sizeof(int)) ? in curl_socket()
346 (sizeof(curl_socket_t) == sizeof(long)) ? in curl_socket()
350 curl_socket_t sockfd = socket(domain, type, protocol); in curl_socket()
360 curl_socket_t socket_vector[2], in curl_socketpair()
363 const char *fmt = (sizeof(curl_socket_t) == sizeof(int)) ? in curl_socketpair()
365 (sizeof(curl_socket_t) == sizeof(long)) ? in curl_socketpair()
378 curl_socket_t curl_accept(curl_socket_t s, void *saddr, void *saddrlen, in curl_accept()
381 const char *fmt = (sizeof(curl_socket_t) == sizeof(int)) ? in curl_accept()
383 (sizeof(curl_socket_t) == sizeof(long)) ? in curl_accept()
[all …]
Dconnect.h52 curl_socket_t Curl_getconnectinfo(struct SessionHandle *data,
65 void Curl_sndbufset(curl_socket_t sockfd);
70 void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd);
72 int Curl_closesocket(struct connectdata *conn, curl_socket_t sock);
103 curl_socket_t *sockfd);
Dsendf.h27 CURLcode Curl_sendf(curl_socket_t sockfd, struct connectdata *,
60 CURLcode Curl_read_plain(curl_socket_t sockfd,
71 CURLcode Curl_read(struct connectdata *conn, curl_socket_t sockfd,
76 curl_socket_t sockfd,
82 curl_socket_t sockfd,
Dselect.h50 curl_socket_t fd;
74 int Curl_socket_check(curl_socket_t readfd, curl_socket_t readfd2,
75 curl_socket_t writefd,
Dmemdebug.h59 CURL_EXTERN curl_socket_t curl_socket(int domain, int type, int protocol,
61 CURL_EXTERN void curl_mark_sclose(curl_socket_t sockfd,
63 CURL_EXTERN int curl_sclose(curl_socket_t sockfd,
65 CURL_EXTERN curl_socket_t curl_accept(curl_socket_t s, void *a, void *alen,
69 curl_socket_t socket_vector[2],
Dconnect.c86 static bool verifyconnect(curl_socket_t sockfd, int *error);
107 curl_socket_t sockfd) in tcpkeepalive()
165 curl_socket_t *sock);
239 curl_socket_t sockfd, int af, unsigned int scope) in bindlocal()
473 static bool verifyconnect(curl_socket_t sockfd, int *error) in verifyconnect()
550 curl_socket_t fd_to_close = conn->tempsock[tempindex]; in trynextip()
660 void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd) in Curl_updateconninfo()
861 curl_socket_t sockfd) in tcpnodelay()
899 curl_socket_t sockfd) in nosigpipe()
929 void Curl_sndbufset(curl_socket_t sockfd) in Curl_sndbufset()
[all …]
Durldata.h331 curl_socket_t ssl_sockfd;
674 curl_socket_t maxfd;
748 curl_socket_t *socks,
754 curl_socket_t *socks,
760 curl_socket_t *socks,
767 curl_socket_t *socks,
906 curl_socket_t sock[2]; /* two sockets, the second is used for the data
908 curl_socket_t tempsock[2]; /* temporary sockets for happy eyeballs */
935 curl_socket_t sockfd; /* socket to read from or CURL_SOCKET_BAD */
936 curl_socket_t writesockfd; /* socket to write to, it may very
[all …]
Dselect.c146 int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */ in Curl_socket_check()
147 curl_socket_t readfd1, in Curl_socket_check()
148 curl_socket_t writefd, /* socket to write to */ in Curl_socket_check()
160 curl_socket_t maxfd; in Curl_socket_check()
260 maxfd = (curl_socket_t)-1; in Curl_socket_check()
394 curl_socket_t maxfd; in Curl_poll()
467 maxfd = (curl_socket_t)-1; in Curl_poll()
Dmulti.c156 curl_socket_t socket; /* mainly to ease debugging */
166 curl_socket_t s, in sh_addentry()
170 Curl_hash_pick(sh, (char *)&s, sizeof(curl_socket_t)); in sh_addentry()
186 if(!Curl_hash_add(sh, (char *)&s, sizeof(curl_socket_t), check)) { in sh_addentry()
196 static void sh_delentry(struct curl_hash *sh, curl_socket_t s) in sh_delentry()
199 Curl_hash_pick(sh, (char *)&s, sizeof(curl_socket_t)); in sh_delentry()
205 Curl_hash_delete(sh, (char *)&s, sizeof(curl_socket_t)); in sh_delentry()
629 curl_socket_t *sock, in waitconnect_getsock()
650 curl_socket_t *sock, in waitproxyconnect_getsock()
667 curl_socket_t *socks, in domore_getsock()
[all …]
Dsecurity.c140 socket_read(curl_socket_t fd, void *to, size_t len) in socket_read()
167 socket_write(struct connectdata *conn, curl_socket_t fd, const void *to, in socket_write()
191 curl_socket_t fd, in read_data()
233 curl_socket_t fd = conn->sock[sockindex]; in sec_recv()
271 static void do_sec_send(struct connectdata *conn, curl_socket_t fd, in do_sec_send()
325 static ssize_t sec_write(struct connectdata *conn, curl_socket_t fd, in sec_write()
350 curl_socket_t fd = conn->sock[sockindex]; in sec_send()
Dsendf.c168 CURLcode Curl_sendf(curl_socket_t sockfd, struct connectdata *conn, in Curl_sendf()
221 curl_socket_t sockfd, in Curl_write()
256 curl_socket_t sockfd = conn->sock[num]; in Curl_send_plain()
294 curl_socket_t sockfd, in Curl_write_plain()
313 curl_socket_t sockfd = conn->sock[num]; in Curl_recv_plain()
514 CURLcode Curl_read_plain(curl_socket_t sockfd, in Curl_read_plain()
545 curl_socket_t sockfd, /* read from this socket */ in Curl_read()
Dpingpong.h126 CURLcode Curl_pp_readresp(curl_socket_t sockfd,
137 int Curl_pp_getsock(struct pingpong *pp, curl_socket_t *socks,
/external/curl/tests/libtest/
Dlib582.c34 curl_socket_t *sockets;
47 static void removeFd(struct Sockets* sockets, curl_socket_t fd, int mention) in removeFd()
58 sizeof(curl_socket_t) * (sockets->count - (i + 1))); in removeFd()
67 static void addFd(struct Sockets* sockets, curl_socket_t fd, const char *what) in addFd()
79 sockets->sockets = malloc(sizeof(curl_socket_t) * 20U); in addFd()
85 curl_socket_t *oldptr = sockets->sockets; in addFd()
86 sockets->sockets = realloc(oldptr, sizeof(curl_socket_t) * in addFd()
105 static int curlSocketCallback(CURL *easy, curl_socket_t s, int action, in curlSocketCallback()
189 curl_socket_t *maxFd) in updateFdSet()
200 static void notifyCurl(CURLM *curl, curl_socket_t s, int evBitmask, in notifyCurl()
[all …]
Dlibntlmconnect.c37 static curl_socket_t sockets[MAX_EASY_HANDLES];
43 curl_socket_t sock; in callback()
73 sock = (curl_socket_t)longdata; in callback()
186 curl_socket_t curfd = (curl_socket_t)i; in test()
/external/curl/docs/examples/
Dexternalsocket.c60 static curl_socket_t opensocket(void *clientp, in opensocket()
64 curl_socket_t sockfd; in opensocket()
67 sockfd = *(curl_socket_t *)clientp; in opensocket()
73 static int sockopt_callback(void *clientp, curl_socket_t curlfd, in sockopt_callback()
88 curl_socket_t sockfd; in main()
Dasiohiper.cpp59 std::map<curl_socket_t, boost::asio::ip::tcp::socket *> socket_map;
223 static void setsock(int *fdp, curl_socket_t s, CURL*e, int act, GlobalInfo*g) in setsock()
227 std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(s); in setsock()
266 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) in addsock()
276 static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp) in sock_cb()
344 static curl_socket_t opensocket(void *clientp, curlsocktype purpose, in opensocket()
349 curl_socket_t sockfd = CURL_SOCKET_BAD; in opensocket()
373 … socket_map.insert(std::pair<curl_socket_t, boost::asio::ip::tcp::socket *>(sockfd, tcp_socket)); in opensocket()
381 static int closesocket(void *clientp, curl_socket_t item) in closesocket()
385 std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(item); in closesocket()
Dhiperfifo.c98 curl_socket_t sockfd;
229 static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g) in setsock()
247 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) in addsock()
257 static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp) in sock_cb()
370 curl_socket_t sockfd; in init_fifo()
Dmulti-uv.c48 curl_socket_t sockfd;
51 curl_context_t* create_curl_context(curl_socket_t sockfd) in create_curl_context()
169 int handle_socket(CURL *easy, curl_socket_t s, int action, void *userp, in handle_socket()
Dsendrecv.c29 static int wait_on_socket(curl_socket_t sockfd, int for_recv, long timeout_ms) in wait_on_socket()
64 curl_socket_t sockfd; /* socket */ in main()
Devhiperfifo.c102 curl_socket_t sockfd;
231 static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g) in setsock()
251 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) in addsock()
261 static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp) in sock_cb()
382 curl_socket_t sockfd; in init_fifo()
/external/curl/include/curl/
Dmulti.h107 curl_socket_t fd;
265 curl_socket_t s, /* socket */
286 CURL_EXTERN CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s,
290 curl_socket_t s,
398 curl_socket_t sockfd, void *sockp);
/external/google-breakpad/src/third_party/curl/
Dmulti.h232 curl_socket_t s, /* socket */
253 CURL_EXTERN CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s,
257 curl_socket_t s,
340 curl_socket_t sockfd, void *sockp);
/external/libbrillo/brillo/http/
Dcurl_api.h104 curl_socket_t sockfd,
109 curl_socket_t s,
191 curl_socket_t sockfd,
196 curl_socket_t s,
/external/curl/tests/server/
Dsws.c129 static curl_socket_t all_sockets[MAX_SOCKETS];
922 static int get_request(curl_socket_t sock, struct httprequest *req) in get_request()
1025 static int send_doc(curl_socket_t sock, struct httprequest *req) in send_doc()
1285 static curl_socket_t connect_to(const char *ipaddr, unsigned short port) in connect_to()
1288 curl_socket_t serverfd; in connect_to()
1396 static void http_connect(curl_socket_t *infdp, in http_connect()
1397 curl_socket_t rootfd, in http_connect()
1401 curl_socket_t serverfd[2] = {CURL_SOCKET_BAD, CURL_SOCKET_BAD}; in http_connect()
1402 curl_socket_t clientfd[2] = {CURL_SOCKET_BAD, CURL_SOCKET_BAD}; in http_connect()
1447 curl_socket_t maxfd = (curl_socket_t)-1; in http_connect()
[all …]
Dsockfilt.c670 curl_socket_t fd; /* the original input handle (indexed by fds) */
671 curl_socket_t wsasock; /* the internal socket handle (indexed by wsa) */
682 curl_socket_t sock; in select_ws()
885 static bool juggle(curl_socket_t *sockfdp, in juggle()
886 curl_socket_t listenfd, in juggle()
893 curl_socket_t sockfd = CURL_SOCKET_BAD; in juggle()
927 FD_SET((curl_socket_t)fileno(stdin), &fds_read); in juggle()
1110 curl_socket_t newfd = CURL_SOCKET_BAD; /* newly accepted socket */ in juggle()
1166 static curl_socket_t sockdaemon(curl_socket_t sock, in sockdaemon()
1311 curl_socket_t sock = CURL_SOCKET_BAD; in main()
[all …]

1234