/third_party/curl/tests/server/ |
D | socksd.c | 292 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 …]
|
D | sws.c | 1301 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 …]
|
D | sockfilt.c | 965 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 …]
|
D | mqttd.c | 711 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 …]
|
D | tftpd.c | 199 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()
|
D | rtspd.c | 1057 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()
|
D | resolve.c | 114 if(s == CURL_SOCKET_BAD) in main()
|
/third_party/curl/lib/ |
D | select.c | 198 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 …]
|
D | select.h | 80 Curl_socket_check(x, CURL_SOCKET_BAD, CURL_SOCKET_BAD, z) 82 Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
|
D | socketpair.c | 77 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()
|
D | cf-socket.c | 286 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 …]
|
D | asyn-thread.c | 215 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()
|
D | multi.c | 223 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 …]
|
D | memdebug.c | 310 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()
|
D | pingpong.c | 116 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()
|
D | curl_ntlm_wb.c | 83 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()
|
D | cfilters.c | 514 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()
|
D | transfer.c | 897 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/ |
D | lib677.c | 38 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()
|
D | lib1960.c | 76 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()
|
D | libntlmconnect.c | 64 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()
|
D | lib1530.c | 37 return CURL_SOCKET_BAD; in opensocket()
|
/third_party/curl/lib/vquic/ |
D | curl_msh3.c | 689 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/ |
D | CURLOPT_OPENSOCKETFUNCTION.md | 57 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/ |
D | rustls.c | 544 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()
|