Home
last modified time | relevance | path

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

/system/core/libcutils/
Dsocket_inaddr_any_server_windows.cpp39 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.cpp35 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()
Dsockets_test.cpp36 ASSERT_NE(INVALID_SOCKET, server); in TestConnectedSockets()
37 ASSERT_NE(INVALID_SOCKET, client); in TestConnectedSockets()
86 if (server != INVALID_SOCKET) { in TEST()
94 EXPECT_EQ(-1, socket_get_local_port(INVALID_SOCKET)); in TEST()
109 ASSERT_NE(INVALID_SOCKET, server); in TEST()
131 ASSERT_NE(INVALID_SOCKET, server); in TEST()
143 EXPECT_EQ(-1, socket_send_buffers(INVALID_SOCKET, nullptr, 0)); in TEST()
/system/chre/host/common/
Dsocket_client.cc37 std::atomic_init(&mSockFd, INVALID_SOCKET); in SocketClient()
68 if (mSockFd != INVALID_SOCKET && shutdown(mSockFd, SHUT_RDWR) != 0) { in disconnect()
80 return (mSockFd != INVALID_SOCKET); in isConnected()
86 if (mSockFd == INVALID_SOCKET) { in sendMessage()
146 while (!mGracefulShutdown && (mSockFd != INVALID_SOCKET || reconnect())) { in receiveThread()
166 mSockFd = INVALID_SOCKET; in receiveThread()
239 if (mSockFd != INVALID_SOCKET) { in tryConnect()
Dsocket_server.cc73 if (mSockFd == INVALID_SOCKET && allowSocketCreation) { in run()
80 if (mSockFd == INVALID_SOCKET) { in run()
/system/core/fastboot/
Dsocket.cpp43 if (sock_ != INVALID_SOCKET) { in Close()
45 sock_ = INVALID_SOCKET; in Close()
89 if (sock_ == INVALID_SOCKET) { in WaitForRecv()
242 if (handler == INVALID_SOCKET) { in Accept()
252 if (sock != INVALID_SOCKET) { in NewClient()
257 if (sock != INVALID_SOCKET) { in NewClient()
272 if (sock != INVALID_SOCKET) { in NewServer()
277 if (sock != INVALID_SOCKET) { in NewServer()
Dsocket.h113 cutils_socket_t sock_ = INVALID_SOCKET;
Dsocket_mock.cpp33 SocketMock::SocketMock() : Socket(INVALID_SOCKET) {} in SocketMock()
/system/core/libcutils/include/cutils/
Dsockets.h40 #define INVALID_SOCKET (-1) macro
/system/core/libcutils/include_vndk/cutils/
Dsockets.h40 #define INVALID_SOCKET (-1) macro
/system/chre/host/common/include/chre_host/
Dsocket_server.h91 int mSockFd = INVALID_SOCKET;
/system/core/adb/
Dsysdeps_win32.cpp661 f->fh_socket = INVALID_SOCKET; in _fh_socket_init()
665 if (f->fh_socket != INVALID_SOCKET) { in _fh_socket_close()
671 f->fh_socket = INVALID_SOCKET; in _fh_socket_close()
821 if (s == INVALID_SOCKET) { in network_loopback_client()
871 if (s == INVALID_SOCKET) { in _network_server()
975 if (s == INVALID_SOCKET) { in network_connect()
1080 if (fh->fh_socket == INVALID_SOCKET) { in adb_socket_accept()