Home
last modified time | relevance | path

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

12

/external/curl/tests/server/
Dsocksd.c280 if(sock == CURL_SOCKET_BAD) in socksconnect()
281 return CURL_SOCKET_BAD; in socksconnect()
294 return CURL_SOCKET_BAD; in socksconnect()
311 return CURL_SOCKET_BAD; in socks4()
315 return CURL_SOCKET_BAD; in socks4()
324 if(connfd == CURL_SOCKET_BAD) { in socks4()
339 return CURL_SOCKET_BAD; in socks4()
348 if(connfd != CURL_SOCKET_BAD) in socks4()
351 return CURL_SOCKET_BAD; in socks4()
364 curl_socket_t connfd = CURL_SOCKET_BAD; in sockit()
[all …]
Dsws.c1227 return CURL_SOCKET_BAD; in connect_to()
1234 if(CURL_SOCKET_BAD == serverfd) { in connect_to()
1238 return CURL_SOCKET_BAD; in connect_to()
1259 return CURL_SOCKET_BAD; in connect_to()
1272 return CURL_SOCKET_BAD; in connect_to()
1281 return CURL_SOCKET_BAD; in connect_to()
1287 return CURL_SOCKET_BAD; in connect_to()
1295 return CURL_SOCKET_BAD; in connect_to()
1326 curl_socket_t serverfd[2] = {CURL_SOCKET_BAD, CURL_SOCKET_BAD}; in http_connect()
1327 curl_socket_t clientfd[2] = {CURL_SOCKET_BAD, CURL_SOCKET_BAD}; in http_connect()
[all …]
Dsockfilt.c909 curl_socket_t sockfd = CURL_SOCKET_BAD; in juggle()
956 if(CURL_SOCKET_BAD == sockfd) { in juggle()
972 if(CURL_SOCKET_BAD != sockfd) { in juggle()
986 sockfd = CURL_SOCKET_BAD; in juggle()
1100 if(sockfd != CURL_SOCKET_BAD) { in juggle()
1103 *sockfdp = CURL_SOCKET_BAD; in juggle()
1116 if((sockfd != CURL_SOCKET_BAD) && (FD_ISSET(sockfd, &fds_read)) ) { in juggle()
1122 if(CURL_SOCKET_BAD == newfd) { in juggle()
1156 *sockfdp = CURL_SOCKET_BAD; in juggle()
1198 return CURL_SOCKET_BAD; in sockdaemon()
[all …]
Dmqttd.c640 return CURL_SOCKET_BAD; in mqttit()
699 if(CURL_SOCKET_BAD == newfd) { in incoming()
748 return CURL_SOCKET_BAD; in sockdaemon()
753 return CURL_SOCKET_BAD; in sockdaemon()
793 return CURL_SOCKET_BAD; in sockdaemon()
815 return CURL_SOCKET_BAD; in sockdaemon()
836 return CURL_SOCKET_BAD; in sockdaemon()
847 return CURL_SOCKET_BAD; in sockdaemon()
856 curl_socket_t sock = CURL_SOCKET_BAD; in main()
857 curl_socket_t msgsock = CURL_SOCKET_BAD; in main()
[all …]
Dtftpd.c203 static curl_socket_t peer = CURL_SOCKET_BAD;
554 curl_socket_t sock = CURL_SOCKET_BAD; in main()
651 if(CURL_SOCKET_BAD == sock) { in main()
783 if(CURL_SOCKET_BAD == peer) { in main()
798 if(CURL_SOCKET_BAD == peer) { in main()
822 peer = CURL_SOCKET_BAD; in main()
846 if((peer != sock) && (peer != CURL_SOCKET_BAD)) in main()
849 if(sock != CURL_SOCKET_BAD) in main()
Drtspd.c1046 curl_socket_t sock = CURL_SOCKET_BAD; in main()
1047 curl_socket_t msgsock = CURL_SOCKET_BAD; in main()
1151 if(CURL_SOCKET_BAD == sock) { in main()
1266 if(CURL_SOCKET_BAD == msgsock) { in main()
1347 msgsock = CURL_SOCKET_BAD; in main()
1360 if((msgsock != sock) && (msgsock != CURL_SOCKET_BAD)) in main()
1363 if(sock != CURL_SOCKET_BAD) in main()
Dresolve.c114 if(s == CURL_SOCKET_BAD) in main()
/external/curl/lib/
Dselect.c252 if((readfd0 == CURL_SOCKET_BAD) && (readfd1 == CURL_SOCKET_BAD) && in Curl_socket_check()
253 (writefd == CURL_SOCKET_BAD)) { in Curl_socket_check()
264 if(readfd0 != CURL_SOCKET_BAD) { in Curl_socket_check()
270 if(readfd1 != CURL_SOCKET_BAD) { in Curl_socket_check()
276 if(writefd != CURL_SOCKET_BAD) { in Curl_socket_check()
289 if(readfd0 != CURL_SOCKET_BAD) { in Curl_socket_check()
296 if(readfd1 != CURL_SOCKET_BAD) { in Curl_socket_check()
303 if(writefd != CURL_SOCKET_BAD) { in Curl_socket_check()
342 if(ufds[i].fd != CURL_SOCKET_BAD) { in Curl_poll()
376 if(ufds[i].fd == CURL_SOCKET_BAD) in Curl_poll()
[all …]
Dselect.h85 Curl_socket_check(x, CURL_SOCKET_BAD, CURL_SOCKET_BAD, z)
87 Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
Dsocketpair.c73 if(listener == CURL_SOCKET_BAD) in Curl_socketpair()
81 socks[0] = socks[1] = CURL_SOCKET_BAD; in Curl_socketpair()
93 if(socks[0] == CURL_SOCKET_BAD) in Curl_socketpair()
98 if(socks[1] == CURL_SOCKET_BAD) in Curl_socketpair()
Dconnect.c582 conn->tempsock[tempindex] = CURL_SOCKET_BAD; in trynextip()
599 if(fd_to_close != CURL_SOCKET_BAD) in trynextip()
859 if(conn->tempsock[i] == CURL_SOCKET_BAD) in Curl_is_connected()
869 conn->tempsock[i] = CURL_SOCKET_BAD; in Curl_is_connected()
915 conn->tempsock[i] = CURL_SOCKET_BAD; in Curl_is_connected()
921 if(conn->tempsock[other] != CURL_SOCKET_BAD) { in Curl_is_connected()
923 conn->tempsock[other] = CURL_SOCKET_BAD; in Curl_is_connected()
965 conn->tempsock[other] == CURL_SOCKET_BAD) in Curl_is_connected()
973 (conn->tempsock[0] == CURL_SOCKET_BAD) && in Curl_is_connected()
974 (conn->tempsock[1] == CURL_SOCKET_BAD)) { in Curl_is_connected()
[all …]
Dmulti.c210 if(s != CURL_SOCKET_BAD) { in sh_getentry()
384 multi->wakeup_pair[0] = CURL_SOCKET_BAD; in Curl_multi_handle()
385 multi->wakeup_pair[1] = CURL_SOCKET_BAD; in Curl_multi_handle()
391 multi->wakeup_pair[0] = CURL_SOCKET_BAD; in Curl_multi_handle()
392 multi->wakeup_pair[1] = CURL_SOCKET_BAD; in Curl_multi_handle()
919 if(conn->tempsock[i] != CURL_SOCKET_BAD) { in waitconnect_getsock()
1049 curl_socket_t s = CURL_SOCKET_BAD; in curl_multi_fdset()
1059 if(s == CURL_SOCKET_BAD) in curl_multi_fdset()
1117 curl_socket_t s = CURL_SOCKET_BAD;
1127 if(s == CURL_SOCKET_BAD) {
[all …]
Dmemdebug.c296 return CURL_SOCKET_BAD; in curl_dbg_socket()
300 if(source && (sockfd != CURL_SOCKET_BAD)) in curl_dbg_socket()
369 if(source && (sockfd != CURL_SOCKET_BAD)) in curl_dbg_accept()
Dasyn-thread.c210 if(tsd->sock_pair[1] != CURL_SOCKET_BAD) { in destroy_thread_sync_data()
250 tsd->sock_pair[0] = CURL_SOCKET_BAD; in init_thread_sync_data()
251 tsd->sock_pair[1] = CURL_SOCKET_BAD; in init_thread_sync_data()
327 if(tsd->sock_pair[1] != CURL_SOCKET_BAD) { in getaddrinfo_thread()
Dcurl_ntlm_wb.c81 if(ntlm->ntlm_auth_hlpr_socket != CURL_SOCKET_BAD) { in ntlm_wb_cleanup()
83 ntlm->ntlm_auth_hlpr_socket = CURL_SOCKET_BAD; in ntlm_wb_cleanup()
135 if(ntlm->ntlm_auth_hlpr_socket != CURL_SOCKET_BAD || in ntlm_wb_init()
Dpingpong.c113 rc = Curl_socket_check(pp->sendleft?CURL_SOCKET_BAD:sock, /* reading */ in Curl_pp_statemach()
114 CURL_SOCKET_BAD, in Curl_pp_statemach()
115 pp->sendleft?sock:CURL_SOCKET_BAD, /* writing */ in Curl_pp_statemach()
Dtransfer.c1229 fd_read = CURL_SOCKET_BAD; in Curl_readwrite()
1234 fd_write = CURL_SOCKET_BAD; in Curl_readwrite()
1243 select_res = Curl_socket_check(fd_read, CURL_SOCKET_BAD, fd_write, 0); in Curl_readwrite()
1389 DEBUGASSERT(conn->sockfd != CURL_SOCKET_BAD); in Curl_single_getsock()
1405 DEBUGASSERT(conn->writesockfd != CURL_SOCKET_BAD); in Curl_single_getsock()
1865 ((writesockindex == -1 ? CURL_SOCKET_BAD : conn->sock[writesockindex])) : in Curl_setup_transfer()
1874 CURL_SOCKET_BAD : conn->sock[sockindex]; in Curl_setup_transfer()
1876 CURL_SOCKET_BAD:conn->sock[writesockindex]; in Curl_setup_transfer()
Durl.c676 DEBUGASSERT(psnd->bindsock != CURL_SOCKET_BAD); in conn_reset_postponed_data()
683 psnd->bindsock = CURL_SOCKET_BAD; /* used only for DEBUGASSERT */ in conn_reset_postponed_data()
690 DEBUGASSERT(psnd->bindsock == CURL_SOCKET_BAD); in conn_reset_postponed_data()
720 if(CURL_SOCKET_BAD != conn->sock[SECONDARYSOCKET]) in conn_shutdown()
722 if(CURL_SOCKET_BAD != conn->sock[FIRSTSOCKET]) in conn_shutdown()
724 if(CURL_SOCKET_BAD != conn->tempsock[0]) in conn_shutdown()
726 if(CURL_SOCKET_BAD != conn->tempsock[1]) in conn_shutdown()
1168 if(check->sock[FIRSTSOCKET] == CURL_SOCKET_BAD) { in ConnectionExists()
1629 conn->sock[FIRSTSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */ in allocate_conn()
1630 conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */ in allocate_conn()
[all …]
Dhostip6.c80 if(s == CURL_SOCKET_BAD) in Curl_ipv6works()
Dsendf.c156 const int readymask = Curl_socket_check(sockfd, CURL_SOCKET_BAD, in pre_receive_plain()
157 CURL_SOCKET_BAD, 0); in pre_receive_plain()
218 psnd->bindsock = CURL_SOCKET_BAD; in get_pre_recved()
/external/curl/tests/libtest/
Dlibntlmconnect.c60 sock = CURL_SOCKET_BAD; in callback()
64 if(sock != CURL_SOCKET_BAD) { in callback()
66 if(sockets[idx] == CURL_SOCKET_BAD) { in callback()
107 sockets[i] = CURL_SOCKET_BAD; in test()
Dlib1530.c35 return CURL_SOCKET_BAD; in opensocket()
/external/curl/lib/vtls/
Dmesalink.c538 : CURL_SOCKET_BAD; in mesalink_connect_common()
541 : CURL_SOCKET_BAD; in mesalink_connect_common()
543 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in mesalink_connect_common()
/external/curl/docs/examples/
Dexternalsocket.c117 if(sockfd == CURL_SOCKET_BAD) { in main()
/external/google-breakpad/src/third_party/curl/
Dmulti.h225 #define CURL_SOCKET_TIMEOUT CURL_SOCKET_BAD

12