Searched refs:clientSocket (Results 1 – 3 of 3) 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/netd/tests/ |
D | binder_test.cpp | 120 static void fakeRemoteSocketPair(int *clientSocket, int *serverSocket, int *acceptedSocket); 540 void BinderTest::fakeRemoteSocketPair(int *clientSocket, int *serverSocket, int *acceptedSocket) { in fakeRemoteSocketPair() argument 549 *clientSocket = socket(AF_INET6, SOCK_STREAM, 0); in fakeRemoteSocketPair() 551 ASSERT_EQ(0, bind(*clientSocket, (struct sockaddr *) &client6, sizeof(client6))); in fakeRemoteSocketPair() 552 ASSERT_EQ(0, connect(*clientSocket, (struct sockaddr *) &server6, sizeof(server6))); in fakeRemoteSocketPair() 553 ASSERT_EQ(0, getsockname(*clientSocket, (struct sockaddr *) &client6, &addrlen)); in fakeRemoteSocketPair() 561 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { in checkSocketpairOpen() argument 563 EXPECT_EQ(4, write(clientSocket, "foo", sizeof("foo"))); in checkSocketpairOpen() 568 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { in checkSocketpairClosed() argument 570 int ret = write(clientSocket, "foo", sizeof("foo")); in checkSocketpairClosed() [all …]
|