Home
last modified time | relevance | path

Searched refs:CURL_SOCKET_BAD (Results 1 – 25 of 55) sorted by relevance

123

/third_party/curl/tests/server/
Dsocksd.c292 if(sock == CURL_SOCKET_BAD) in socksconnect()
293 return CURL_SOCKET_BAD; in socksconnect()
306 return CURL_SOCKET_BAD; in socksconnect()
323 return CURL_SOCKET_BAD; in socks4()
327 return CURL_SOCKET_BAD; in socks4()
336 if(connfd == CURL_SOCKET_BAD) { in socks4()
351 return CURL_SOCKET_BAD; in socks4()
360 if(connfd != CURL_SOCKET_BAD) in socks4()
363 return CURL_SOCKET_BAD; in socks4()
376 curl_socket_t connfd = CURL_SOCKET_BAD; in sockit()
[all …]
Dsws.c1301 return CURL_SOCKET_BAD; in connect_to()
1308 if(CURL_SOCKET_BAD == serverfd) { in connect_to()
1312 return CURL_SOCKET_BAD; in connect_to()
1333 return CURL_SOCKET_BAD; in connect_to()
1346 return CURL_SOCKET_BAD; in connect_to()
1355 return CURL_SOCKET_BAD; in connect_to()
1361 return CURL_SOCKET_BAD; in connect_to()
1369 return CURL_SOCKET_BAD; in connect_to()
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.c965 curl_socket_t sockfd = CURL_SOCKET_BAD; in juggle()
1010 if(CURL_SOCKET_BAD == sockfd) { in juggle()
1026 if(CURL_SOCKET_BAD != sockfd) { in juggle()
1040 sockfd = CURL_SOCKET_BAD; in juggle()
1138 if(sockfd != CURL_SOCKET_BAD) { in juggle()
1141 *sockfdp = CURL_SOCKET_BAD; in juggle()
1154 if((sockfd != CURL_SOCKET_BAD) && (FD_ISSET(sockfd, &fds_read)) ) { in juggle()
1160 if(CURL_SOCKET_BAD == newfd) { in juggle()
1194 *sockfdp = CURL_SOCKET_BAD; in juggle()
1236 return CURL_SOCKET_BAD; in sockdaemon()
[all …]
Dmqttd.c711 return CURL_SOCKET_BAD; in mqttit()
770 if(CURL_SOCKET_BAD == newfd) { in incoming()
819 return CURL_SOCKET_BAD; in sockdaemon()
824 return CURL_SOCKET_BAD; in sockdaemon()
864 return CURL_SOCKET_BAD; in sockdaemon()
886 return CURL_SOCKET_BAD; in sockdaemon()
907 return CURL_SOCKET_BAD; in sockdaemon()
918 return CURL_SOCKET_BAD; in sockdaemon()
927 curl_socket_t sock = CURL_SOCKET_BAD; in main()
928 curl_socket_t msgsock = CURL_SOCKET_BAD; in main()
[all …]
Dtftpd.c199 static curl_socket_t peer = CURL_SOCKET_BAD;
557 curl_socket_t sock = CURL_SOCKET_BAD; in main()
661 if(CURL_SOCKET_BAD == sock) { in main()
792 if(CURL_SOCKET_BAD == peer) { in main()
807 if(CURL_SOCKET_BAD == peer) { in main()
831 peer = CURL_SOCKET_BAD; in main()
850 if((peer != sock) && (peer != CURL_SOCKET_BAD)) in main()
853 if(sock != CURL_SOCKET_BAD) in main()
Drtspd.c1057 curl_socket_t sock = CURL_SOCKET_BAD; in main()
1058 curl_socket_t msgsock = CURL_SOCKET_BAD; in main()
1169 if(CURL_SOCKET_BAD == sock) { in main()
1283 if(CURL_SOCKET_BAD == msgsock) { in main()
1364 msgsock = CURL_SOCKET_BAD; in main()
1377 if((msgsock != sock) && (msgsock != CURL_SOCKET_BAD)) in main()
1380 if(sock != CURL_SOCKET_BAD) in main()
Dresolve.c114 if(s == CURL_SOCKET_BAD) in main()
/third_party/curl/lib/
Dselect.c198 if((readfd0 == CURL_SOCKET_BAD) && (readfd1 == CURL_SOCKET_BAD) && in Curl_socket_check()
199 (writefd == CURL_SOCKET_BAD)) { in Curl_socket_check()
210 if(readfd0 != CURL_SOCKET_BAD) { in Curl_socket_check()
216 if(readfd1 != CURL_SOCKET_BAD) { in Curl_socket_check()
222 if(writefd != CURL_SOCKET_BAD) { in Curl_socket_check()
235 if(readfd0 != CURL_SOCKET_BAD) { in Curl_socket_check()
242 if(readfd1 != CURL_SOCKET_BAD) { in Curl_socket_check()
249 if(writefd != CURL_SOCKET_BAD) { in Curl_socket_check()
288 if(ufds[i].fd != CURL_SOCKET_BAD) { in Curl_poll()
326 if(ufds[i].fd == CURL_SOCKET_BAD) in Curl_poll()
[all …]
Dselect.h80 Curl_socket_check(x, CURL_SOCKET_BAD, CURL_SOCKET_BAD, z)
82 Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
Dsocketpair.c77 if(listener == CURL_SOCKET_BAD) in Curl_socketpair()
85 socks[0] = socks[1] = CURL_SOCKET_BAD; in Curl_socketpair()
111 if(socks[0] == CURL_SOCKET_BAD) in Curl_socketpair()
124 if(socks[1] == CURL_SOCKET_BAD) in Curl_socketpair()
Dcf-socket.c286 if(*sockfd == CURL_SOCKET_BAD) in socket_open()
805 ctx->sock = CURL_SOCKET_BAD; in cf_socket_ctx_init()
892 if(ctx && CURL_SOCKET_BAD != ctx->sock) { in cf_socket_close()
896 cf->conn->sock[cf->sockindex] = CURL_SOCKET_BAD; in cf_socket_close()
898 ctx->sock = CURL_SOCKET_BAD; in cf_socket_close()
986 DEBUGASSERT(ctx->sock == CURL_SOCKET_BAD); in cf_socket_open()
1064 if(ctx->sock != CURL_SOCKET_BAD) { in cf_socket_open()
1066 ctx->sock = CURL_SOCKET_BAD; in cf_socket_open()
1152 if(ctx->sock == CURL_SOCKET_BAD) { in cf_tcp_connect()
1221 if(ctx->sock != CURL_SOCKET_BAD) { in cf_tcp_connect()
[all …]
Dasyn-thread.c215 if(tsd->sock_pair[1] != CURL_SOCKET_BAD) { in destroy_thread_sync_data()
255 tsd->sock_pair[0] = CURL_SOCKET_BAD; in init_thread_sync_data()
256 tsd->sock_pair[1] = CURL_SOCKET_BAD; in init_thread_sync_data()
273 if(tsd->sock_pair[0] != CURL_SOCKET_BAD) { in init_thread_sync_data()
275 tsd->sock_pair[0] = CURL_SOCKET_BAD; in init_thread_sync_data()
425 if(tsd->sock_pair[1] != CURL_SOCKET_BAD) { in query_complete()
482 if(tsd->sock_pair[1] != CURL_SOCKET_BAD) { in getaddrinfo_thread()
Dmulti.c223 if(s != CURL_SOCKET_BAD) { in sh_getentry()
408 multi->wakeup_pair[0] = CURL_SOCKET_BAD; in Curl_multi_handle()
409 multi->wakeup_pair[1] = CURL_SOCKET_BAD; in Curl_multi_handle()
415 multi->wakeup_pair[0] = CURL_SOCKET_BAD; in Curl_multi_handle()
416 multi->wakeup_pair[1] = CURL_SOCKET_BAD; in Curl_multi_handle()
909 if((s != CURL_SOCKET_BAD) && c) { in curl_multi_remove_handle()
1003 if(conn && conn->sock[FIRSTSOCKET] != CURL_SOCKET_BAD) { in connecting_getsock()
1016 else if(conn && conn->sockfd != CURL_SOCKET_BAD) { in protocol_getsock()
1029 else if(conn && conn->sockfd != CURL_SOCKET_BAD) { in domore_getsock()
1042 else if(conn && conn->sockfd != CURL_SOCKET_BAD) { in doing_getsock()
[all …]
Dmemdebug.c310 return CURL_SOCKET_BAD; in curl_dbg_socket()
314 if(source && (sockfd != CURL_SOCKET_BAD)) in curl_dbg_socket()
374 if(source && (sockfd != CURL_SOCKET_BAD)) in curl_dbg_accept()
Dpingpong.c116 rc = Curl_socket_check(pp->sendleft?CURL_SOCKET_BAD:sock, /* reading */ in Curl_pp_statemach()
117 CURL_SOCKET_BAD, in Curl_pp_statemach()
118 pp->sendleft?sock:CURL_SOCKET_BAD, /* writing */ in Curl_pp_statemach()
Dcurl_ntlm_wb.c83 if(ntlm->ntlm_auth_hlpr_socket != CURL_SOCKET_BAD) { in ntlm_wb_cleanup()
85 ntlm->ntlm_auth_hlpr_socket = CURL_SOCKET_BAD; in ntlm_wb_cleanup()
137 if(ntlm->ntlm_auth_hlpr_socket != CURL_SOCKET_BAD || in ntlm_wb_init()
Dcfilters.c514 return CURL_SOCKET_BAD; in Curl_conn_cf_get_socket()
527 return data->conn? data->conn->sock[sockindex] : CURL_SOCKET_BAD; in Curl_conn_get_socket()
538 data->conn->sock[sockindex] = CURL_SOCKET_BAD; in Curl_conn_forget_socket()
673 ps->sockets[i] = CURL_SOCKET_BAD; in Curl_pollset_reset()
Dtransfer.c897 fd_read = CURL_SOCKET_BAD; in Curl_readwrite()
902 fd_write = CURL_SOCKET_BAD; in Curl_readwrite()
904 select_bits = Curl_socket_check(fd_read, CURL_SOCKET_BAD, fd_write, 0); in Curl_readwrite()
1615 ((writesockindex == -1 ? CURL_SOCKET_BAD : conn->sock[writesockindex])) : in Curl_setup_transfer()
1624 CURL_SOCKET_BAD : conn->sock[sockindex]; in Curl_setup_transfer()
1626 CURL_SOCKET_BAD:conn->sock[writesockindex]; in Curl_setup_transfer()
/third_party/curl/tests/libtest/
Dlib677.c38 curl_socket_t sock = CURL_SOCKET_BAD; in test()
66 if(sock == CURL_SOCKET_BAD) in test()
72 if(sock != CURL_SOCKET_BAD) { in test()
78 curl_multi_wait(mcurl, &waitfd, sock == CURL_SOCKET_BAD ? 0 : 1, 500, in test()
80 if((sock != CURL_SOCKET_BAD) && (waitfd.revents & waitfd.events)) { in test()
114 sock = CURL_SOCKET_BAD; in test()
Dlib1960.c76 curl_socket_t client_fd = CURL_SOCKET_BAD; in test()
96 if(client_fd == CURL_SOCKET_BAD) { in test()
135 if(client_fd != CURL_SOCKET_BAD) in test()
Dlibntlmconnect.c64 sock = CURL_SOCKET_BAD; in callback()
68 if(sock != CURL_SOCKET_BAD) { in callback()
70 if(sockets[idx] == CURL_SOCKET_BAD) { in callback()
111 sockets[i] = CURL_SOCKET_BAD; in test()
Dlib1530.c37 return CURL_SOCKET_BAD; in opensocket()
/third_party/curl/lib/vquic/
Dcurl_msh3.c689 if(stream && ctx->sock[SP_LOCAL] != CURL_SOCKET_BAD) { in cf_msh3_adjust_pollset()
877 if(ctx->sock[SP_LOCAL] == CURL_SOCKET_BAD) { in cf_msh3_connect()
879 ctx->sock[SP_LOCAL] = CURL_SOCKET_BAD; in cf_msh3_connect()
880 ctx->sock[SP_REMOTE] = CURL_SOCKET_BAD; in cf_msh3_connect()
945 cf->conn->sock[cf->sockindex] = CURL_SOCKET_BAD; in cf_msh3_close()
950 ctx->sock[SP_LOCAL] = CURL_SOCKET_BAD; in cf_msh3_close()
955 if(ctx->sock[SP_LOCAL] != CURL_SOCKET_BAD) { in cf_msh3_close()
958 if(ctx->sock[SP_REMOTE] != CURL_SOCKET_BAD) { in cf_msh3_close()
961 ctx->sock[SP_LOCAL] = CURL_SOCKET_BAD; in cf_msh3_close()
962 ctx->sock[SP_REMOTE] = CURL_SOCKET_BAD; in cf_msh3_close()
[all …]
/third_party/curl/docs/libcurl/opts/
DCURLOPT_OPENSOCKETFUNCTION.md57 function should return the newly created socket or *CURL_SOCKET_BAD* in
60 the user's discretion. A *CURL_SOCKET_BAD* return value from the callback
/third_party/curl/lib/vtls/
Drustls.c544 writefd = wants_write?sockfd:CURL_SOCKET_BAD; in cr_connect_common()
545 readfd = wants_read?sockfd:CURL_SOCKET_BAD; in cr_connect_common()
559 readfd, CURL_SOCKET_BAD, writefd, socket_check_timeout); in cr_connect_common()

123