Searched refs:clientSocket (Results 1 – 4 of 4) sorted by relevance
/system/chre/host/common/ |
D | socket_server.cc | 93 int clientSocket = pair.first; in run() local 94 if (close(clientSocket) != 0) { in run() 110 int clientSocket = pair.first; in sendToAllClients() local 112 if (sendToClientSocket(data, length, clientSocket, clientId)) { in sendToAllClients() 134 int clientSocket = pair.first; in sendToClientById() local 135 sent = sendToClientSocket(data, length, clientSocket, thisClientId); in sendToClientById() 144 int clientSocket = accept(mSockFd, NULL, NULL); in acceptClientConnection() local 145 if (clientSocket < 0) { in acceptClientConnection() 149 close(clientSocket); in acceptClientConnection() 166 mPollFds[i].fd = clientSocket; in acceptClientConnection() [all …]
|
/system/chre/host/common/include/chre_host/ |
D | socket_server.h | 114 void disconnectClient(int clientSocket); 115 void handleClientData(int clientSocket); 116 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 | 166 static void fakeRemoteSocketPair(unique_fd* clientSocket, unique_fd* serverSocket, 618 void NetdBinderTest::fakeRemoteSocketPair(unique_fd* clientSocket, unique_fd* serverSocket, in fakeRemoteSocketPair() argument 628 clientSocket->reset(socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in fakeRemoteSocketPair() 630 ASSERT_EQ(0, bind(*clientSocket, (struct sockaddr *) &client6, sizeof(client6))); in fakeRemoteSocketPair() 631 ASSERT_EQ(0, connect(*clientSocket, (struct sockaddr *) &server6, sizeof(server6))); in fakeRemoteSocketPair() 632 ASSERT_EQ(0, getsockname(*clientSocket, (struct sockaddr *) &client6, &addrlen)); in fakeRemoteSocketPair() 641 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { in checkSocketpairOpen() argument 643 EXPECT_EQ(4, write(clientSocket, "foo", sizeof("foo"))); in checkSocketpairOpen() 648 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { in checkSocketpairClosed() argument 650 int ret = write(clientSocket, "foo", sizeof("foo")); in checkSocketpairClosed() [all …]
|