Home
last modified time | relevance | path

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

/system/core/libcutils/
Dsocket_inaddr_any_server_windows.c39 return INVALID_SOCKET; in socket_inaddr_any_server()
43 if (sock == INVALID_SOCKET) { in socket_inaddr_any_server()
44 return INVALID_SOCKET; in socket_inaddr_any_server()
58 return INVALID_SOCKET; in socket_inaddr_any_server()
69 return INVALID_SOCKET; in socket_inaddr_any_server()
75 return INVALID_SOCKET; in socket_inaddr_any_server()
Dsocket_network_client_windows.c35 return INVALID_SOCKET; in socket_network_client()
50 return INVALID_SOCKET; in socket_network_client()
56 if (sock == INVALID_SOCKET) { in socket_network_client()
58 return INVALID_SOCKET; in socket_network_client()
64 return INVALID_SOCKET; in socket_network_client()
/system/core/libcutils/tests/
Dsockets_test.cpp34 ASSERT_NE(INVALID_SOCKET, server); in TestConnectedSockets()
35 ASSERT_NE(INVALID_SOCKET, client); in TestConnectedSockets()
103 if (server != INVALID_SOCKET) { in TEST()
111 EXPECT_EQ(-1, socket_get_local_port(INVALID_SOCKET)); in TEST()
126 ASSERT_NE(INVALID_SOCKET, server); in TEST()
148 ASSERT_NE(INVALID_SOCKET, server); in TEST()
161 ASSERT_NE(INVALID_SOCKET, sock); in TEST()
171 ASSERT_NE(INVALID_SOCKET, server); in TEST()
186 EXPECT_EQ(-1, socket_send_buffers(INVALID_SOCKET, nullptr, 0)); in TEST()
/system/core/fastboot/
Dsocket.cpp43 if (sock_ != INVALID_SOCKET) { in Close()
45 sock_ = INVALID_SOCKET; in Close()
87 if (sock_ == INVALID_SOCKET) { in WaitForRecv()
240 if (handler == INVALID_SOCKET) { in Accept()
250 if (sock != INVALID_SOCKET) { in NewClient()
255 if (sock != INVALID_SOCKET) { in NewClient()
270 if (sock != INVALID_SOCKET) { in NewServer()
275 if (sock != INVALID_SOCKET) { in NewServer()
Dsocket.h114 cutils_socket_t sock_ = INVALID_SOCKET;
Dsocket_mock.cpp33 SocketMock::SocketMock() : Socket(INVALID_SOCKET) {} in SocketMock()
/system/bt/udrv/ulinux/
Duipc_linux.h22 #define INVALID_SOCKET (SOCKET)(-1) macro
/system/core/include/cutils/
Dsockets.h39 #define INVALID_SOCKET (-1) macro
/system/core/adb/
Dsysdeps_win32.cpp713 f->fh_socket = INVALID_SOCKET; in _fh_socket_init()
718 if (f->fh_socket != INVALID_SOCKET) { in _fh_socket_close()
733 f->fh_socket = INVALID_SOCKET; in _fh_socket_close()
859 if (s == INVALID_SOCKET) { in network_loopback_client()
913 if (s == INVALID_SOCKET) { in _network_server()
1018 if (s == INVALID_SOCKET) { in network_connect()
1069 if (fh->fh_socket == INVALID_SOCKET) { in adb_socket_accept()