Home
last modified time | relevance | path

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

12

/external/libxml2/
Dnanoftp.c488 ret->controlFd = INVALID_SOCKET; in xmlNanoFTPNewCtxt()
515 if (ctxt->controlFd != INVALID_SOCKET) closesocket(ctxt->controlFd); in xmlNanoFTPFreeCtxt()
516 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPFreeCtxt()
571 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPGetMore()
623 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPGetMore()
624 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPGetMore()
652 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPReadResponse()
741 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPCheckResponse()
830 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPQuit()
958 if (ctxt->controlFd == INVALID_SOCKET) { in xmlNanoFTPConnect()
[all …]
Dnanohttp.c103 #define INVALID_SOCKET (-1) macro
197 if (s != INVALID_SOCKET) { in have_ipv6()
401 ret->fd = INVALID_SOCKET; in xmlNanoHTTPNewCtxt()
438 if (ctxt->fd != INVALID_SOCKET) closesocket(ctxt->fd); in xmlNanoHTTPFreeCtxt()
439 ctxt->fd = INVALID_SOCKET; in xmlNanoHTTPFreeCtxt()
878 if (s == INVALID_SOCKET) { in xmlNanoHTTPConnectAttempt()
883 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
924 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
939 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
952 return INVALID_SOCKET; in xmlNanoHTTPConnectAttempt()
[all …]
/external/webrtc/webrtc/examples/peerconnection/server/
Ddata_socket.h30 #ifndef INVALID_SOCKET
31 #define INVALID_SOCKET static_cast<NativeSocket>(-1) macro
39 SocketBase() : socket_(INVALID_SOCKET) { } in SocketBase()
44 bool valid() const { return socket_ != INVALID_SOCKET; } in valid()
Ddata_socket.cc61 if (socket_ != INVALID_SOCKET) { in Close()
63 socket_ = INVALID_SOCKET; in Close()
289 if (client == INVALID_SOCKET) in Accept()
/external/autotest/client/tests/kvm/deps/
Dfinish.cpp66 if (ListenSocket == INVALID_SOCKET) in PrepareListenSocket()
94 SOCKET ListenSocket = INVALID_SOCKET, ClientSocket = INVALID_SOCKET; in main()
115 if (ClientSocket == INVALID_SOCKET) { in main()
/external/webrtc/webrtc/test/channel_transport/
Dudp_socket_posix.cc73 if(_socket != INVALID_SOCKET) in ~UdpSocketPosix()
76 _socket = INVALID_SOCKET; in ~UdpSocketPosix()
169 return _socket != INVALID_SOCKET; in ValidHandle()
257 _socket = INVALID_SOCKET; in ReadyForDeletion()
271 if (_socket == INVALID_SOCKET) in CleanUp()
Dudp_socket_wrapper.h30 #ifndef INVALID_SOCKET
31 #define INVALID_SOCKET (SOCKET)(~0) macro
Dudp_socket2_win.cc71 _socket = INVALID_SOCKET; in UdpSocket2Windows()
133 if (_socket != INVALID_SOCKET) in UdpSocket2Windows()
155 if (_socket == INVALID_SOCKET) in UdpSocket2Windows()
221 return GetFd() != INVALID_SOCKET; in ValidHandle()
1339 const bool returnValue = _socket != INVALID_SOCKET; in AquireSocket()
1355 if(_socket == INVALID_SOCKET) in InvalidateSocket()
1368 _socket = INVALID_SOCKET; in InvalidateSocket()
Dudp_socket_wrapper.cc107 if (sl->GetFd() != INVALID_SOCKET && sl->GetFd() < FD_SETSIZE) in CreateSocket()
/external/webrtc/webrtc/base/
Dwin32socketserver.cc230 : socket_(INVALID_SOCKET), error_(0), state_(CS_CLOSED), connect_time_(0), in Win32Socket()
242 if (socket_ == INVALID_SOCKET) { in CreateT()
253 ASSERT(socket_ == INVALID_SOCKET); in Attach()
254 if (socket_ != INVALID_SOCKET) in Attach()
257 ASSERT(s != INVALID_SOCKET); in Attach()
258 if (s == INVALID_SOCKET) in Attach()
306 ASSERT(socket_ != INVALID_SOCKET); in Bind()
307 if (socket_ == INVALID_SOCKET) in Bind()
356 if ((socket_ == INVALID_SOCKET) && !CreateT(addr.family(), SOCK_STREAM)) { in DoConnect()
481 if (s == INVALID_SOCKET) in Accept()
[all …]
Dphysicalsocketserver.cc101 state_((s == INVALID_SOCKET) ? CS_CLOSED : CS_CONNECTED), in PhysicalSocket()
111 if (s_ != INVALID_SOCKET) { in PhysicalSocket()
132 return s_ != INVALID_SOCKET; in Create()
200 if ((s_ == INVALID_SOCKET) && in DoConnect()
382 if (s == INVALID_SOCKET) in Accept()
390 if (s_ == INVALID_SOCKET) in Close()
394 s_ = INVALID_SOCKET; in Close()
572 ASSERT(s_ != INVALID_SOCKET); in Initialize()
752 if (s_ == INVALID_SOCKET) in Close()
1103 return INVALID_SOCKET; in GetSocket()
[all …]
Dmacasyncsocket.cc35 native_socket_(INVALID_SOCKET), in MacAsyncSocket()
237 if (socket_fd == INVALID_SOCKET) { in Accept()
273 native_socket_ = INVALID_SOCKET; // invalidates the socket in Close()
345 if (native_socket_ == INVALID_SOCKET) { in Initialize()
Dsocket.h116 #define INVALID_SOCKET (-1) macro
/external/libmicrohttpd/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_()
/external/libxml2/include/libxml/
Dnanoftp.h34 #undef INVALID_SOCKET
35 #define INVALID_SOCKET (-1) macro
/external/libevent/
Dlistener.c504 res->s = INVALID_SOCKET; in new_accepting_socket()
521 if (as->s != INVALID_SOCKET) in free_and_unlock_accepting_socket()
541 if (s == INVALID_SOCKET) { in start_accepting()
588 as->s = INVALID_SOCKET; in stop_accepting()
630 as->s = INVALID_SOCKET; in accepted_socket_invoke_user_cb()
678 } else if (as->s == INVALID_SOCKET) { in accepted_socket_cb()
716 if (!as->free_on_cb && as->s == INVALID_SOCKET) in iocp_listener_enable()
738 if (!as->free_on_cb && as->s != INVALID_SOCKET) { in iocp_listener_disable_impl()
/external/netperf/src/
Dnettest_unix.c155 if (temp_socket == INVALID_SOCKET){ in create_unix_socket()
310 if (send_socket == INVALID_SOCKET){ in send_stream_stream()
428 sizeof(server)) == INVALID_SOCKET){ in send_stream_stream()
801 if (s_listen == INVALID_SOCKET) { in recv_stream_stream()
918 &addrlen)) == INVALID_SOCKET) { in recv_stream_stream()
1148 if (send_socket == INVALID_SOCKET){ in send_stream_rr()
1232 sizeof(server)) == INVALID_SOCKET){ in send_stream_rr()
1611 if (data_socket == INVALID_SOCKET){ in send_dg_stream()
1700 sizeof(server)) == INVALID_SOCKET){ in send_dg_stream()
2030 if (s_data == INVALID_SOCKET) { in recv_dg_stream()
[all …]
Dnettest_bsd.c1205 if (temp_socket == INVALID_SOCKET){ in create_data_socket()
1838 if (send_socket == INVALID_SOCKET){ in send_tcp_stream()
1986 remote_res->ai_addrlen) == INVALID_SOCKET){ in send_tcp_stream()
2557 if (recv_socket == INVALID_SOCKET){ in send_tcp_maerts()
2705 remote_res->ai_addrlen) == INVALID_SOCKET){ in send_tcp_maerts()
3194 if (send_socket == INVALID_SOCKET){ in send_tcp_mss()
3289 remote_res->ai_addrlen) == INVALID_SOCKET){ in send_tcp_mss()
3496 if (send_socket == INVALID_SOCKET){ in send_exs_tcp_stream()
3640 remote_res->ai_addrlen) == INVALID_SOCKET){ in send_exs_tcp_stream()
4256 if (send_socket == INVALID_SOCKET){
[all …]
Dnettest_sdp.c301 if (send_socket == INVALID_SOCKET){ in send_sdp_stream()
449 remote_res->ai_addrlen) == INVALID_SOCKET){ in send_sdp_stream()
998 if (recv_socket == INVALID_SOCKET){ in send_sdp_maerts()
1146 remote_res->ai_addrlen) == INVALID_SOCKET){ in send_sdp_maerts()
1674 if (s_listen == INVALID_SOCKET) { in recv_sdp_stream()
1782 &addrlen)) == INVALID_SOCKET) { in recv_sdp_stream()
2009 if (s_listen == INVALID_SOCKET) { in recv_sdp_maerts()
2130 &addrlen)) == INVALID_SOCKET) { in recv_sdp_maerts()
2442 if (send_socket == INVALID_SOCKET){ in send_sdp_rr()
2544 remote_res->ai_addrlen) == INVALID_SOCKET){ in send_sdp_rr()
[all …]
Dnetserver.c392 if (server_sock != INVALID_SOCKET) { in set_server_sock()
405 socket(TCPIP$C_AUXS, SOCK_STREAM, 0)) == INVALID_SOCKET) { in set_server_sock()
491 if (temp_socket == INVALID_SOCKET) { in create_listens()
640 SOCKET max = INVALID_SOCKET; in set_fdset()
1181 &peeraddrlen)) == INVALID_SOCKET) { in accept_connection()
Dnetlib.c180 SOCKET win_kludge_socket = INVALID_SOCKET;
181 SOCKET win_kludge_socket2 = INVALID_SOCKET;
220 SOCKET netlib_control = INVALID_SOCKET;
221 SOCKET server_sock = INVALID_SOCKET;
1145 if (win_kludge_socket != INVALID_SOCKET) { in emulate_alarm()
1149 if (win_kludge_socket2 != INVALID_SOCKET) { in emulate_alarm()
3246 return(INVALID_SOCKET); in establish_control_internal()
3250 return(INVALID_SOCKET); in establish_control_internal()
3283 if (control_sock == INVALID_SOCKET) { in establish_control_internal()
3292 return(INVALID_SOCKET); in establish_control_internal()
[all …]
Dnettest_xti.c190 if (temp_socket == INVALID_SOCKET){ in create_xti_endpoint()
649 if (send_socket == INVALID_SOCKET) { in send_xti_tcp_stream()
828 NULL) == INVALID_SOCKET){ in send_xti_tcp_stream()
1366 if (s_listen == INVALID_SOCKET) { in recv_xti_tcp_stream()
1882 if (send_socket == INVALID_SOCKET){ in send_xti_tcp_rr()
2013 NULL) == INVALID_SOCKET){ in send_xti_tcp_rr()
2580 if (data_socket == INVALID_SOCKET) { in send_xti_udp_stream()
3196 if (s_data == INVALID_SOCKET) { in recv_xti_udp_stream()
3628 if (send_socket == INVALID_SOCKET){ in send_xti_udp_rr()
4278 if (s_data == INVALID_SOCKET) { in recv_xti_udp_rr()
[all …]
/external/mdnsresponder/mDNSShared/
Ddnssd_ipc.h39 # define dnssd_InvalidSocket INVALID_SOCKET
40 # define dnssd_SocketValid(s) ((s) != INVALID_SOCKET)
/external/dbus/dbus/
Ddbus-sockets-win.h44 #define DBUS_SOCKET_IS_INVALID(s) ((SOCKET)(s) == INVALID_SOCKET)
/external/libmicrohttpd/src/include/
Dplatform.h183 #define MHD_INVALID_SOCKET (INVALID_SOCKET)

12