Home
last modified time | relevance | path

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

1234

/external/curl/lib/
Dmemdebug.c340 curl_socket_t curl_socket(int domain, int type, int protocol, in curl_socket()
343 const char *fmt = (sizeof(curl_socket_t) == sizeof(int)) ? in curl_socket()
345 (sizeof(curl_socket_t) == sizeof(long)) ? in curl_socket()
349 curl_socket_t sockfd = socket(domain, type, protocol); in curl_socket()
359 curl_socket_t socket_vector[2], in curl_socketpair()
362 const char *fmt = (sizeof(curl_socket_t) == sizeof(int)) ? in curl_socketpair()
364 (sizeof(curl_socket_t) == sizeof(long)) ? in curl_socketpair()
377 curl_socket_t curl_accept(curl_socket_t s, void *saddr, void *saddrlen, in curl_accept()
380 const char *fmt = (sizeof(curl_socket_t) == sizeof(int)) ? in curl_accept()
382 (sizeof(curl_socket_t) == sizeof(long)) ? in curl_accept()
[all …]
Dconnect.h52 curl_socket_t Curl_getconnectinfo(struct Curl_easy *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);
105 void Curl_tcpnodelay(struct connectdata *conn, 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.h55 CURL_EXTERN curl_socket_t curl_socket(int domain, int type, int protocol,
57 CURL_EXTERN void curl_mark_sclose(curl_socket_t sockfd,
59 CURL_EXTERN int curl_sclose(curl_socket_t sockfd,
61 CURL_EXTERN curl_socket_t curl_accept(curl_socket_t s, void *a, void *alen,
65 curl_socket_t socket_vector[2],
Durldata.h335 curl_socket_t ssl_sockfd;
689 curl_socket_t maxfd;
763 curl_socket_t *socks,
769 curl_socket_t *socks,
775 curl_socket_t *socks,
782 curl_socket_t *socks,
843 curl_socket_t bindsock;/* Structure must be bound to specific socket,
939 curl_socket_t sock[2]; /* two sockets, the second is used for the data
941 curl_socket_t tempsock[2]; /* temporary sockets for happy eyeballs */
972 curl_socket_t sockfd; /* socket to read from or CURL_SOCKET_BAD */
[all …]
Dconnect.c87 static bool verifyconnect(curl_socket_t sockfd, int *error);
108 curl_socket_t sockfd) in tcpkeepalive()
166 curl_socket_t *sock);
240 curl_socket_t sockfd, int af, unsigned int scope) in bindlocal()
474 static bool verifyconnect(curl_socket_t sockfd, int *error) in verifyconnect()
551 curl_socket_t fd_to_close = conn->tempsock[tempindex]; in trynextip()
661 void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd) in Curl_updateconninfo()
870 void Curl_tcpnodelay(struct connectdata *conn, curl_socket_t sockfd) in Curl_tcpnodelay()
914 curl_socket_t sockfd) in nosigpipe()
944 void Curl_sndbufset(curl_socket_t sockfd) in Curl_sndbufset()
[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.c167 curl_socket_t socket; /* mainly to ease debugging */
177 curl_socket_t s) in sh_getentry()
181 return Curl_hash_pick(sh, (char *)&s, sizeof(curl_socket_t)); in sh_getentry()
187 curl_socket_t s, in sh_addentry()
206 if(!Curl_hash_add(sh, (char *)&s, sizeof(curl_socket_t), check)) { in sh_addentry()
216 static void sh_delentry(struct curl_hash *sh, curl_socket_t s) in sh_delentry()
220 Curl_hash_delete(sh, (char *)&s, sizeof(curl_socket_t)); in sh_delentry()
237 return (*((curl_socket_t *) k1)) == (*((curl_socket_t *) k2)); in fd_key_compare()
242 curl_socket_t fd = *((curl_socket_t *) key); in hash_fd()
796 curl_socket_t *sock, in waitconnect_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.c127 const curl_socket_t sockfd = conn->sock[num]; in pre_receive_plain()
253 CURLcode Curl_sendf(curl_socket_t sockfd, struct connectdata *conn, in Curl_sendf()
306 curl_socket_t sockfd, in Curl_write()
341 curl_socket_t sockfd = conn->sock[num]; in Curl_send_plain()
396 curl_socket_t sockfd, in Curl_write_plain()
415 curl_socket_t sockfd = conn->sock[num]; in Curl_recv_plain()
625 CURLcode Curl_read_plain(curl_socket_t sockfd, in Curl_read_plain()
658 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()
188 curl_socket_t curfd = (curl_socket_t)i; in test()
/external/curl/docs/examples/
Dexternalsocket.c61 static curl_socket_t opensocket(void *clientp, in opensocket()
65 curl_socket_t sockfd; in opensocket()
68 sockfd = *(curl_socket_t *)clientp; in opensocket()
74 static int sockopt_callback(void *clientp, curl_socket_t curlfd, in sockopt_callback()
89 curl_socket_t sockfd; in main()
Dasiohiper.cpp60 std::map<curl_socket_t, boost::asio::ip::tcp::socket *> socket_map;
224 static void setsock(int *fdp, curl_socket_t s, CURL*e, int act, GlobalInfo*g) in setsock()
228 std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(s); in setsock()
267 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) in addsock()
277 static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp) in sock_cb()
345 static curl_socket_t opensocket(void *clientp, curlsocktype purpose, in opensocket()
350 curl_socket_t sockfd = CURL_SOCKET_BAD; in opensocket()
374 … socket_map.insert(std::pair<curl_socket_t, boost::asio::ip::tcp::socket *>(sockfd, tcp_socket)); in opensocket()
382 static int close_socket(void *clientp, curl_socket_t item) in close_socket()
386 std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(item); in close_socket()
Dsendrecv.c32 static int wait_on_socket(curl_socket_t sockfd, int for_recv, long timeout_ms) in wait_on_socket()
65 curl_socket_t sockfd; /* socket */ in main()
101 sockfd = (curl_socket_t)sockextr; in main()
Dhiperfifo.c102 curl_socket_t sockfd;
233 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()
376 curl_socket_t sockfd; in init_fifo()
Dmulti-uv.c52 curl_socket_t sockfd;
55 curl_context_t* create_curl_context(curl_socket_t sockfd) in create_curl_context()
173 int handle_socket(CURL *easy, curl_socket_t s, int action, void *userp, in handle_socket()
Devhiperfifo.c106 curl_socket_t sockfd;
246 static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g) 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()
394 curl_socket_t sockfd; in init_fifo()
/external/curl/include/curl/
Dmulti.h111 curl_socket_t fd;
269 curl_socket_t s, /* socket */
290 CURL_EXTERN CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s,
294 curl_socket_t s,
408 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,
202 curl_socket_t sockfd,
207 curl_socket_t s,
/external/curl/tests/server/
Dsws.c129 static curl_socket_t all_sockets[MAX_SOCKETS];
925 static int get_request(curl_socket_t sock, struct httprequest *req) in get_request()
1028 static int send_doc(curl_socket_t sock, struct httprequest *req) in send_doc()
1290 static curl_socket_t connect_to(const char *ipaddr, unsigned short port) in connect_to()
1293 curl_socket_t serverfd; in connect_to()
1401 static void http_connect(curl_socket_t *infdp, in http_connect()
1402 curl_socket_t rootfd, in http_connect()
1406 curl_socket_t serverfd[2] = {CURL_SOCKET_BAD, CURL_SOCKET_BAD}; in http_connect()
1407 curl_socket_t clientfd[2] = {CURL_SOCKET_BAD, CURL_SOCKET_BAD}; in http_connect()
1452 curl_socket_t maxfd = (curl_socket_t)-1; in http_connect()
[all …]
Dsockfilt.c680 curl_socket_t fd; /* the original input handle (indexed by fds) */
681 curl_socket_t wsasock; /* the internal socket handle (indexed by wsa) */
692 curl_socket_t sock; in select_ws()
906 static bool juggle(curl_socket_t *sockfdp, in juggle()
907 curl_socket_t listenfd, in juggle()
914 curl_socket_t sockfd = CURL_SOCKET_BAD; in juggle()
948 FD_SET((curl_socket_t)fileno(stdin), &fds_read); in juggle()
1131 curl_socket_t newfd = CURL_SOCKET_BAD; /* newly accepted socket */ in juggle()
1187 static curl_socket_t sockdaemon(curl_socket_t sock, in sockdaemon()
1332 curl_socket_t sock = CURL_SOCKET_BAD; in main()
[all …]

1234