Home
last modified time | relevance | path

Searched refs:clientSocket (Results 1 – 4 of 4) sorted by relevance

/system/chre/host/common/
Dsocket_server.cc71 int clientSocket = pair.first; in run() local
72 if (close(clientSocket) != 0) { in run()
88 int clientSocket = pair.first; in sendToAllClients() local
90 if (sendToClientSocket(data, length, clientSocket, clientId)) { in sendToAllClients()
112 int clientSocket = pair.first; in sendToClientById() local
113 sent = sendToClientSocket(data, length, clientSocket, thisClientId); in sendToClientById()
122 int clientSocket = accept(mSockFd, NULL, NULL); in acceptClientConnection() local
123 if (clientSocket < 0) { in acceptClientConnection()
127 close(clientSocket); in acceptClientConnection()
144 mPollFds[i].fd = clientSocket; in acceptClientConnection()
[all …]
/system/chre/host/common/include/chre_host/
Dsocket_server.h129 void disconnectClient(int clientSocket);
131 void handleClientData(int clientSocket);
133 bool sendToClientSocket(const void *data, size_t length, int clientSocket,
/system/core/libsysutils/src/
DSocketListener_test.cpp62 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/
Dbinder_test.cpp252 static void fakeRemoteSocketPair(unique_fd* clientSocket, unique_fd* serverSocket,
955 void NetdBinderTest::fakeRemoteSocketPair(unique_fd* clientSocket, unique_fd* serverSocket, in fakeRemoteSocketPair() argument
965 clientSocket->reset(socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in fakeRemoteSocketPair()
967 ASSERT_EQ(0, bind(*clientSocket, (struct sockaddr *) &client6, sizeof(client6))); in fakeRemoteSocketPair()
968 ASSERT_EQ(0, connect(*clientSocket, (struct sockaddr *) &server6, sizeof(server6))); in fakeRemoteSocketPair()
969 ASSERT_EQ(0, getsockname(*clientSocket, (struct sockaddr *) &client6, &addrlen)); in fakeRemoteSocketPair()
978 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { in checkSocketpairOpen() argument
980 EXPECT_EQ(4, write(clientSocket, "foo", sizeof("foo"))); in checkSocketpairOpen()
985 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { in checkSocketpairClosed() argument
987 int ret = write(clientSocket, "foo", sizeof("foo")); in checkSocketpairClosed()
[all …]