Home
last modified time | relevance | path

Searched refs:INVALID_SOCKET (Results 1 – 25 of 59) sorted by relevance

123

/third_party/gettext/gnulib-local/lib/libxml/
Dnanoftp.c511 ret->controlFd = INVALID_SOCKET; in xmlNanoFTPNewCtxt()
540 if (ctxt->controlFd != INVALID_SOCKET) closesocket(ctxt->controlFd); in xmlNanoFTPFreeCtxt()
541 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPFreeCtxt()
596 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPGetMore()
648 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPGetMore()
649 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPGetMore()
677 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPReadResponse()
766 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPCheckResponse()
855 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPQuit()
983 if (ctxt->controlFd == INVALID_SOCKET) { in xmlNanoFTPConnect()
[all …]
Dnanohttp.c125 #define INVALID_SOCKET (-1) macro
233 if (s != INVALID_SOCKET) { in have_ipv6()
437 ret->fd = INVALID_SOCKET; in xmlNanoHTTPNewCtxt()
474 if (ctxt->fd != INVALID_SOCKET) closesocket(ctxt->fd); in xmlNanoHTTPFreeCtxt()
475 ctxt->fd = INVALID_SOCKET; in xmlNanoHTTPFreeCtxt()
914 if (s == INVALID_SOCKET) { in xmlNanoHTTPConnectAttempt()
919 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
960 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
975 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
988 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
[all …]
Dnanoftp.in.h63 #undef INVALID_SOCKET
64 #define INVALID_SOCKET (-1) macro
/third_party/libxml2/
Dnanoftp.c480 ret->controlFd = INVALID_SOCKET; in xmlNanoFTPNewCtxt()
509 if (ctxt->controlFd != INVALID_SOCKET) closesocket(ctxt->controlFd); in xmlNanoFTPFreeCtxt()
510 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPFreeCtxt()
565 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPGetMore()
617 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPGetMore()
618 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPGetMore()
646 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPReadResponse()
735 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPCheckResponse()
824 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPQuit()
952 if (ctxt->controlFd == INVALID_SOCKET) { in xmlNanoFTPConnect()
[all …]
Dnanohttp.c96 #define INVALID_SOCKET (-1) macro
204 if (s != INVALID_SOCKET) { in have_ipv6()
408 ret->fd = INVALID_SOCKET; in xmlNanoHTTPNewCtxt()
445 if (ctxt->fd != INVALID_SOCKET) closesocket(ctxt->fd); in xmlNanoHTTPFreeCtxt()
446 ctxt->fd = INVALID_SOCKET; in xmlNanoHTTPFreeCtxt()
885 if (s == INVALID_SOCKET) { in xmlNanoHTTPConnectAttempt()
890 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
931 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
946 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
959 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
[all …]
/third_party/grpc/src/core/lib/iomgr/
Dendpoint_pair_windows.cc37 SOCKET svr_sock = INVALID_SOCKET; in create_sockets()
38 SOCKET lst_sock = INVALID_SOCKET; in create_sockets()
39 SOCKET cli_sock = INVALID_SOCKET; in create_sockets()
45 GPR_ASSERT(lst_sock != INVALID_SOCKET); in create_sockets()
58 GPR_ASSERT(cli_sock != INVALID_SOCKET); in create_sockets()
63 GPR_ASSERT(svr_sock != INVALID_SOCKET); in create_sockets()
Dtcp_server_windows.cc238 if (sock != INVALID_SOCKET) closesocket(sock); in prepare_socket()
253 SOCKET sock = INVALID_SOCKET; in start_accept_locked()
265 if (sock == INVALID_SOCKET) { in start_accept_locked()
297 if (sock != INVALID_SOCKET) closesocket(sock); in start_accept_locked()
438 sp->new_socket = INVALID_SOCKET; in add_socket_to_server()
500 if (sock == INVALID_SOCKET) { in tcp_server_add_port()
Dtcp_client_windows.cc130 SOCKET sock = INVALID_SOCKET; in tcp_connect()
152 if (sock == INVALID_SOCKET) { in tcp_connect()
224 } else if (sock != INVALID_SOCKET) { in tcp_connect()
Dsocket_windows.cc163 if (s == INVALID_SOCKET) { in probe_ipv6_once()
195 if (sock != INVALID_SOCKET) { in grpc_wsa_socket_flags_init()
/third_party/openssl/crypto/bio/
Db_sock.c202 int s = INVALID_SOCKET; in BIO_get_accept_socket()
207 return INVALID_SOCKET; in BIO_get_accept_socket()
210 return INVALID_SOCKET; in BIO_get_accept_socket()
216 BIO_ADDRINFO_protocol(res), 0)) == INVALID_SOCKET) { in BIO_get_accept_socket()
217 s = INVALID_SOCKET; in BIO_get_accept_socket()
224 s = INVALID_SOCKET; in BIO_get_accept_socket()
241 if (ret == (int)INVALID_SOCKET) { in BIO_accept()
262 ret = (int)INVALID_SOCKET; in BIO_accept()
Db_sock2.c45 return INVALID_SOCKET; in BIO_socket()
51 return INVALID_SOCKET; in BIO_socket()
297 return INVALID_SOCKET; in BIO_accept_ex()
302 return INVALID_SOCKET; in BIO_accept_ex()
Dbss_acpt.c81 bi->num = (int)INVALID_SOCKET; in acpt_new()
100 ret->accept_sock = (int)INVALID_SOCKET; in BIO_ACCEPT_new()
124 if (c->accept_sock != (int)INVALID_SOCKET) { in acpt_close_socket()
127 c->accept_sock = (int)INVALID_SOCKET; in acpt_close_socket()
128 bio->num = (int)INVALID_SOCKET; in acpt_close_socket()
228 if (s == (int)INVALID_SOCKET) { in acpt_state()
Dbss_conn.c141 if (ret == (int)INVALID_SOCKET) { in conn_state()
269 bi->num = (int)INVALID_SOCKET; in conn_new()
282 if (bio->num != (int)INVALID_SOCKET) { in conn_close_socket()
287 bio->num = (int)INVALID_SOCKET; in conn_close_socket()
/third_party/libuv/src/win/
Dtcp.c90 if (handle->socket != INVALID_SOCKET) in uv__tcp_set_socket()
168 handle->socket = INVALID_SOCKET; in uv_tcp_init_ex()
184 if (sock == INVALID_SOCKET) { in uv_tcp_init_ex()
239 assert(handle->socket == INVALID_SOCKET); in uv__tcp_endgame()
296 if (handle->socket == INVALID_SOCKET) { in uv__tcp_try_bind()
304 if (sock == INVALID_SOCKET) { in uv__tcp_try_bind()
396 assert(req->accept_socket == INVALID_SOCKET); in uv__tcp_queue_accept()
407 if (accept_socket == INVALID_SOCKET) { in uv__tcp_queue_accept()
620 req->accept_socket = INVALID_SOCKET; in uv__tcp_listen()
642 req->accept_socket = INVALID_SOCKET; in uv__tcp_listen()
[all …]
Dpoll.c215 if (sock == INVALID_SOCKET) { in uv__fast_poll_create_peer_socket()
216 return INVALID_SOCKET; in uv__fast_poll_create_peer_socket()
234 return INVALID_SOCKET; in uv__fast_poll_create_peer_socket()
254 return INVALID_SOCKET; in uv__fast_poll_get_peer_socket()
432 base_socket = INVALID_SOCKET; in uv_poll_init_socket()
444 assert(base_socket != 0 && base_socket != INVALID_SOCKET); in uv_poll_init_socket()
467 if (peer_socket != INVALID_SOCKET) { in uv_poll_init_socket()
Dudp.c69 if (handle->socket != INVALID_SOCKET) in uv__udp_set_socket()
133 handle->socket = INVALID_SOCKET; in uv__udp_init_ex()
152 if (sock == INVALID_SOCKET) { in uv__udp_init_ex()
173 handle->socket = INVALID_SOCKET; in uv__udp_close()
213 if (handle->socket == INVALID_SOCKET) { in uv__udp_maybe_bind()
215 if (sock == INVALID_SOCKET) { in uv__udp_maybe_bind()
892 if (handle->socket == INVALID_SOCKET) in uv_udp_set_multicast_interface()
923 if (handle->socket == INVALID_SOCKET) in uv_udp_set_broadcast()
990 if (handle->socket == INVALID_SOCKET) \
/third_party/openssl/apps/
Ds_socket.c115 if (*sock == INVALID_SOCKET) { in init_client()
126 *sock = INVALID_SOCKET; in init_client()
152 *sock = INVALID_SOCKET; in init_client()
160 if (*sock == INVALID_SOCKET) { in init_client()
262 if (asock == INVALID_SOCKET && sock_family_fallback != AF_UNSPEC) { in do_server()
266 if (asock == INVALID_SOCKET in do_server()
270 if (asock != INVALID_SOCKET) in do_server()
/third_party/skia/third_party/externals/microhttpd/src/platform/
Dw32functions.c574 if (INVALID_SOCKET == listen_s) in MHD_W32_pair_of_sockets_()
586 if (INVALID_SOCKET != client_s) in MHD_W32_pair_of_sockets_()
596 if (INVALID_SOCKET != server_s) in MHD_W32_pair_of_sockets_()
622 sockets_pair[0] = INVALID_SOCKET; in MHD_W32_pair_of_sockets_()
623 sockets_pair[1] = INVALID_SOCKET; in MHD_W32_pair_of_sockets_()
/third_party/libxml2/include/libxml/
Dnanoftp.h34 #undef INVALID_SOCKET
35 #define INVALID_SOCKET (-1) macro
/third_party/libwebsockets/lib/plat/windows/
Dwindows-pipe.c53 if (fd[0] == INVALID_SOCKET) in lws_plat_pipe_create()
57 if (fd[1] == INVALID_SOCKET) in lws_plat_pipe_create()
/third_party/openssl/test/
Dhandshake_helper.c1329 int lsock = INVALID_SOCKET, asock = INVALID_SOCKET; in create_sctp_socks()
1330 int consock = INVALID_SOCKET; in create_sctp_socks()
1349 if (lsock == INVALID_SOCKET) { in create_sctp_socks()
1360 lsock = INVALID_SOCKET; in create_sctp_socks()
1368 if (lsock == INVALID_SOCKET) in create_sctp_socks()
1379 if (consock == INVALID_SOCKET) in create_sctp_socks()
1388 if (asock == INVALID_SOCKET) in create_sctp_socks()
1393 consock = asock = INVALID_SOCKET; in create_sctp_socks()
1398 if (consock != INVALID_SOCKET) in create_sctp_socks()
1400 if (lsock != INVALID_SOCKET) in create_sctp_socks()
[all …]
/third_party/openssl/include/internal/
Dsockets.h107 # ifndef INVALID_SOCKET
108 # define INVALID_SOCKET (-1) macro
/third_party/libcoap/include/coap3/
Dcoap_io.h40 #define COAP_INVALID_SOCKET INVALID_SOCKET
/third_party/grpc/third_party/address_sorting/
Daddress_sorting_windows.c59 if (s != INVALID_SOCKET) { in windows_source_addr_factory_get_source_addr()
/third_party/libuv/test/
Dtest-poll-multiple-handles.c60 ASSERT(sock != INVALID_SOCKET); in TEST_IMPL()

123