Searched refs:acceptedSocket (Results 1 – 2 of 2) sorted by relevance
/system/netd/client/ |
D | NetdClient.cpp | 127 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags); in netdClientAccept4() local 128 if (acceptedSocket == -1) { in netdClientAccept4() 136 if (getsockopt(acceptedSocket, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in netdClientAccept4() 137 return closeFdAndSetErrno(acceptedSocket, -errno); in netdClientAccept4() 142 if (int error = FwmarkClient().send(&command, acceptedSocket, nullptr)) { in netdClientAccept4() 143 return closeFdAndSetErrno(acceptedSocket, error); in netdClientAccept4() 146 return acceptedSocket; in netdClientAccept4()
|
/system/netd/tests/ |
D | binder_test.cpp | 209 unique_fd* acceptedSocket); 705 unique_fd* acceptedSocket) { in fakeRemoteSocketPair() argument 720 acceptedSocket->reset( in fakeRemoteSocketPair() 722 ASSERT_NE(-1, *acceptedSocket); in fakeRemoteSocketPair() 727 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { in checkSocketpairOpen() argument 730 EXPECT_EQ(4, read(acceptedSocket, buf, sizeof(buf))); in checkSocketpairOpen() 734 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { in checkSocketpairClosed() argument 742 ret = write(acceptedSocket, "foo", sizeof("foo")); in checkSocketpairClosed() 749 unique_fd clientSocket, serverSocket, acceptedSocket; in TEST_F() local 750 ASSERT_NO_FATAL_FAILURE(fakeRemoteSocketPair(&clientSocket, &serverSocket, &acceptedSocket)); in TEST_F() [all …]
|