Searched refs:clientSocket (Results 1 – 4 of 4) sorted by relevance
/system/chre/host/common/ |
D | socket_server.cc | 92 int clientSocket = pair.first; in run() local 93 if (close(clientSocket) != 0) { in run() 109 int clientSocket = pair.first; in sendToAllClients() local 111 if (sendToClientSocket(data, length, clientSocket, clientId)) { in sendToAllClients() 133 int clientSocket = pair.first; in sendToClientById() local 134 sent = sendToClientSocket(data, length, clientSocket, thisClientId); in sendToClientById() 143 int clientSocket = accept(mSockFd, NULL, NULL); in acceptClientConnection() local 144 if (clientSocket < 0) { in acceptClientConnection() 148 close(clientSocket); in acceptClientConnection() 165 mPollFds[i].fd = clientSocket; in acceptClientConnection() [all …]
|
/system/chre/host/common/include/chre_host/ |
D | socket_server.h | 115 void disconnectClient(int clientSocket); 116 void handleClientData(int clientSocket); 117 bool sendToClientSocket(const void *data, size_t length, int clientSocket,
|
/system/core/libsysutils/src/ |
D | SocketListener_test.cpp | 62 unique_fd clientSocket(const std::string& path) { in clientSocket() function 140 unique_fd client_fd = clientSocket(mSocketPath); in testCommand() 176 unique_fd client1 = clientSocket(mSocketPath); in TEST_F() 177 unique_fd client2 = clientSocket(mSocketPath); in TEST_F()
|
/system/netd/tests/ |
D | binder_test.cpp | 208 static void fakeRemoteSocketPair(unique_fd* clientSocket, unique_fd* serverSocket, 704 void NetdBinderTest::fakeRemoteSocketPair(unique_fd* clientSocket, unique_fd* serverSocket, in fakeRemoteSocketPair() argument 714 clientSocket->reset(socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in fakeRemoteSocketPair() 716 ASSERT_EQ(0, bind(*clientSocket, (struct sockaddr *) &client6, sizeof(client6))); in fakeRemoteSocketPair() 717 ASSERT_EQ(0, connect(*clientSocket, (struct sockaddr *) &server6, sizeof(server6))); in fakeRemoteSocketPair() 718 ASSERT_EQ(0, getsockname(*clientSocket, (struct sockaddr *) &client6, &addrlen)); in fakeRemoteSocketPair() 727 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { in checkSocketpairOpen() argument 729 EXPECT_EQ(4, write(clientSocket, "foo", sizeof("foo"))); in checkSocketpairOpen() 734 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { in checkSocketpairClosed() argument 736 int ret = write(clientSocket, "foo", sizeof("foo")); in checkSocketpairClosed() [all …]
|