Home
last modified time | relevance | path

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

12345

/third_party/curl/tests/libtest/
Dlib582.c36 curl_socket_t *sockets;
49 static void removeFd(struct Sockets *sockets, curl_socket_t fd, int mention) in removeFd()
60 sizeof(curl_socket_t) * (sockets->count - (i + 1))); in removeFd()
69 static void addFd(struct Sockets *sockets, curl_socket_t fd, const char *what) in addFd()
81 sockets->sockets = malloc(sizeof(curl_socket_t) * 20U); in addFd()
87 curl_socket_t *oldptr = sockets->sockets; in addFd()
88 sockets->sockets = realloc(oldptr, sizeof(curl_socket_t) * in addFd()
107 static int curlSocketCallback(CURL *easy, curl_socket_t s, int action, in curlSocketCallback()
193 curl_socket_t *maxFd) in updateFdSet()
204 static void notifyCurl(CURLM *curl, curl_socket_t s, int evBitmask, in notifyCurl()
[all …]
Dlib530.c43 curl_socket_t *sockets;
56 static void removeFd(struct Sockets *sockets, curl_socket_t fd, int mention) in removeFd()
67 sizeof(curl_socket_t) * (sockets->count - (i + 1))); in removeFd()
77 static int addFd(struct Sockets *sockets, curl_socket_t fd, const char *what) in addFd()
89 sockets->sockets = malloc(sizeof(curl_socket_t) * 20U); in addFd()
95 curl_socket_t *ptr = realloc(sockets->sockets, sizeof(curl_socket_t) * in addFd()
117 static int curlSocketCallback(CURL *easy, curl_socket_t s, int action, in curlSocketCallback()
219 curl_socket_t *maxFd) in updateFdSet()
230 static int socket_action(CURLM *curl, curl_socket_t s, int evBitmask, in socket_action()
306 curl_socket_t maxFd = 0; in testone()
Dlib1960.c41 static int closesocket_cb(void *clientp, curl_socket_t item) in closesocket_cb()
49 static curl_socket_t socket_cb(void *clientp, in socket_cb()
56 return (curl_socket_t)s; in socket_cb()
61 curl_socket_t curlfd, in sockopt_cb()
76 curl_socket_t client_fd = CURL_SOCKET_BAD; in test()
/third_party/curl/lib/
Dcf-socket.h68 curl_socket_t *sockfd);
71 curl_socket_t sock);
83 void Curl_sndbufset(curl_socket_t sockfd);
141 curl_socket_t *s);
149 curl_socket_t *s);
164 curl_socket_t *psock,
Dselect.h52 curl_socket_t fd;
76 int Curl_socket_check(curl_socket_t readfd, curl_socket_t readfd2,
77 curl_socket_t writefd,
Dmemdebug.c304 curl_socket_t curl_dbg_socket(int domain, int type, int protocol, in curl_dbg_socket()
307 curl_socket_t sockfd; in curl_dbg_socket()
352 curl_socket_t socket_vector[2], in curl_dbg_socketpair()
366 curl_socket_t curl_dbg_accept(curl_socket_t s, void *saddr, void *saddrlen, in curl_dbg_accept()
372 curl_socket_t sockfd = accept(s, addr, addrlen); in curl_dbg_accept()
382 void curl_dbg_mark_sclose(curl_socket_t sockfd, int line, const char *source) in curl_dbg_mark_sclose()
390 int curl_dbg_sclose(curl_socket_t sockfd, int line, const char *source) in curl_dbg_sclose()
Dmemdebug.h78 CURL_EXTERN curl_socket_t curl_dbg_socket(int domain, int type, int protocol,
80 CURL_EXTERN void curl_dbg_mark_sclose(curl_socket_t sockfd,
82 CURL_EXTERN int curl_dbg_sclose(curl_socket_t sockfd,
84 CURL_EXTERN curl_socket_t curl_dbg_accept(curl_socket_t s, void *a, void *alen,
88 curl_socket_t socket_vector[2],
Dselect.c124 static int our_select(curl_socket_t maxfd, /* highest socket number */ in our_select()
189 int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */ in Curl_socket_check()
190 curl_socket_t readfd1, in Curl_socket_check()
191 curl_socket_t writefd, /* socket to write to */ in Curl_socket_check()
280 curl_socket_t maxfd; in Curl_poll()
339 maxfd = (curl_socket_t)-1; in Curl_poll()
Dcfilters.h322 curl_socket_t Curl_conn_cf_get_socket(struct Curl_cfilter *cf,
382 curl_socket_t Curl_conn_get_socket(struct Curl_easy *data, int sockindex);
509 struct easy_pollset *ps, curl_socket_t sock,
513 struct easy_pollset *ps, curl_socket_t sock,
533 curl_socket_t *socks));
540 struct easy_pollset *ps, curl_socket_t sock,
Dcf-socket.c92 static void set_ipv6_v6only(curl_socket_t sockfd, int on) in set_ipv6_v6only()
100 static void tcpnodelay(struct Curl_easy *data, curl_socket_t sockfd) in tcpnodelay()
123 curl_socket_t sockfd) in nosigpipe()
159 curl_socket_t sockfd) in tcpkeepalive()
261 curl_socket_t *sockfd) in socket_open()
312 curl_socket_t *sockfd) in Curl_socket_open()
325 int use_callback, curl_socket_t sock) in socket_close()
351 curl_socket_t sock) in Curl_socket_close()
373 void Curl_sndbufset(curl_socket_t sockfd) in Curl_sndbufset()
402 curl_socket_t sockfd, int af, unsigned int scope) in bindlocal()
[all …]
Dcfilters.c508 curl_socket_t Curl_conn_cf_get_socket(struct Curl_cfilter *cf, in Curl_conn_cf_get_socket()
511 curl_socket_t sock; in Curl_conn_cf_get_socket()
517 curl_socket_t Curl_conn_get_socket(struct Curl_easy *data, int sockindex) in Curl_conn_get_socket()
680 struct easy_pollset *ps, curl_socket_t sock, in Curl_pollset_change()
730 struct easy_pollset *ps, curl_socket_t sock, in Curl_pollset_set()
739 int bitmap, curl_socket_t *socks) in ps_add()
763 curl_socket_t *socks)) in Curl_pollset_add_socks()
765 curl_socket_t socks[MAX_SOCKSPEREASYHANDLE]; in Curl_pollset_add_socks()
773 struct easy_pollset *ps, curl_socket_t sock, in Curl_pollset_check()
/third_party/curl/docs/examples/
Dexternalsocket.c60 static int closecb(void *clientp, curl_socket_t item) in closecb()
67 static curl_socket_t opensocket(void *clientp, in opensocket()
71 curl_socket_t sockfd; in opensocket()
74 sockfd = *(curl_socket_t *)clientp; in opensocket()
80 static int sockopt_callback(void *clientp, curl_socket_t curlfd, in sockopt_callback()
95 curl_socket_t sockfd; in main()
Dhiperfifo.c106 curl_socket_t sockfd;
249 static void setsock(SockInfo *f, curl_socket_t s, CURL *e, int act, in setsock()
269 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) in addsock()
279 static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp) in sock_cb()
398 curl_socket_t sockfd; in init_fifo()
Dmulti-uv.c48 curl_socket_t sockfd;
51 static curl_context_t *create_curl_context(curl_socket_t sockfd) in create_curl_context()
175 static int handle_socket(CURL *easy, curl_socket_t s, int action, void *userp, in handle_socket()
/third_party/curl/tests/server/
Dsocksd.c286 static curl_socket_t socksconnect(unsigned short connectport, in socksconnect()
291 curl_socket_t sock = socket(AF_INET, SOCK_STREAM, 0); in socksconnect()
312 static curl_socket_t socks4(curl_socket_t fd, in socks4()
317 curl_socket_t connfd; in socks4()
366 static curl_socket_t sockit(curl_socket_t fd) in sockit()
376 curl_socket_t connfd = CURL_SOCKET_BAD; in sockit()
643 curl_socket_t remotefd;
644 curl_socket_t clientfd;
689 static bool incoming(curl_socket_t listenfd) in incoming()
715 curl_socket_t sockfd = listenfd; in incoming()
[all …]
Dmqttd.c237 static int connack(FILE *dump, curl_socket_t fd) in connack()
260 static int suback(FILE *dump, curl_socket_t fd, unsigned short packetid) in suback()
283 static int puback(FILE *dump, curl_socket_t fd, unsigned short packetid) in puback()
306 static int disconnect(FILE *dump, curl_socket_t fd) in disconnect()
393 curl_socket_t fd, unsigned short packetid, in publish()
456 static int fixedheader(curl_socket_t fd, in fixedheader()
491 static curl_socket_t mqttit(curl_socket_t fd) in mqttit()
720 static bool incoming(curl_socket_t listenfd) in incoming()
743 curl_socket_t sockfd = listenfd; in incoming()
769 curl_socket_t newfd = accept(sockfd, NULL, NULL); in incoming()
[all …]
Dsws.c135 static curl_socket_t all_sockets[MAX_SOCKETS];
871 static int send_doc(curl_socket_t sock, struct httprequest *req);
875 static int get_request(curl_socket_t sock, struct httprequest *req) in get_request()
1008 static int send_doc(curl_socket_t sock, struct httprequest *req) in send_doc()
1284 static curl_socket_t connect_to(const char *ipaddr, unsigned short port) in connect_to()
1287 curl_socket_t serverfd; in connect_to()
1395 static void http_connect(curl_socket_t *infdp, in http_connect()
1396 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()
[all …]
Dsockfilt.c622 curl_socket_t wsasock; /* internal socket handle (indexed by nws) */
635 curl_socket_t wsasock; in select_ws()
957 static bool juggle(curl_socket_t *sockfdp, in juggle()
958 curl_socket_t listenfd, in juggle()
965 curl_socket_t sockfd = CURL_SOCKET_BAD; in juggle()
994 FD_SET((curl_socket_t)fileno(stdin), &fds_read); in juggle()
1159 curl_socket_t newfd = accept(sockfd, NULL, NULL); in juggle()
1206 static curl_socket_t sockdaemon(curl_socket_t sock, in sockdaemon()
1351 curl_socket_t sock = CURL_SOCKET_BAD; in main()
1352 curl_socket_t msgsock = CURL_SOCKET_BAD; in main()
/third_party/curl/include/curl/
Dmulti.h119 curl_socket_t fd;
300 curl_socket_t s, /* socket */
322 curl_multi_socket(CURLM *multi_handle, curl_socket_t s, int *running_handles);
325 curl_socket_t s,
427 curl_socket_t sockfd, void *sockp);
Dtypecheck-gcc.h144 if(!curlcheck_arr((arg), curl_socket_t)) \
598 typedef int (*_curl_sockopt_callback1)(void *, curl_socket_t, curlsocktype);
599 typedef int (*_curl_sockopt_callback2)(const void *, curl_socket_t,
611 typedef curl_socket_t (*_curl_opensocket_callback1)
613 typedef curl_socket_t (*_curl_opensocket_callback2)
615 typedef curl_socket_t (*_curl_opensocket_callback3)
617 typedef curl_socket_t (*_curl_opensocket_callback4)
/third_party/curl/docs/libcurl/opts/
DCURLOPT_OPENSOCKETDATA.md44 static curl_socket_t opensocket(void *clientp,
48 curl_socket_t sockfd;
49 sockfd = *(curl_socket_t *)clientp;
55 static int sockopt_callback(void *clientp, curl_socket_t curlfd,
DCURLOPT_OPENSOCKETFUNCTION.md34 curl_socket_t opensocket_callback(void *clientp,
85 static curl_socket_t opensocket(void *clientp,
89 curl_socket_t sockfd;
90 sockfd = *(curl_socket_t *)clientp;
96 static int sockopt_callback(void *clientp, curl_socket_t curlfd,
DCURLOPT_SOCKOPTFUNCTION.md34 curl_socket_t curlfd,
84 static curl_socket_t opensocket(void *clientp,
88 curl_socket_t sockfd;
89 sockfd = *(curl_socket_t *)clientp;
95 static int sockopt_callback(void *clientp, curl_socket_t curlfd,
DCURLINFO_ACTIVESOCKET.md24 curl_socket_t *socket);
29 Pass a pointer to a curl_socket_t to receive the most recently active socket
53 curl_socket_t sockfd;
/third_party/libuv/docs/code/uvwget/
Dmain.c13 curl_socket_t sockfd;
16 curl_context_t *create_curl_context(curl_socket_t sockfd) { in create_curl_context()
109 int handle_socket(CURL *easy, curl_socket_t s, int action, void *userp, void *socketp) { in handle_socket()

12345