Searched refs:acceptedSocket (Results 1 – 2 of 2) sorted by relevance
/system/netd/client/ |
D | NetdClient.cpp | 97 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags); in netdClientAccept4() local 98 if (acceptedSocket == -1) { in netdClientAccept4() 106 if (getsockopt(acceptedSocket, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in netdClientAccept4() 107 return closeFdAndSetErrno(acceptedSocket, -errno); in netdClientAccept4() 112 if (int error = FwmarkClient().send(&command, acceptedSocket, nullptr)) { in netdClientAccept4() 113 return closeFdAndSetErrno(acceptedSocket, error); in netdClientAccept4() 116 return acceptedSocket; in netdClientAccept4()
|
/system/netd/tests/ |
D | binder_test.cpp | 152 static void fakeRemoteSocketPair(int *clientSocket, int *serverSocket, int *acceptedSocket); 662 void BinderTest::fakeRemoteSocketPair(int *clientSocket, int *serverSocket, int *acceptedSocket) { in fakeRemoteSocketPair() argument 677 *acceptedSocket = accept4(*serverSocket, (struct sockaddr *) &server6, &addrlen, SOCK_CLOEXEC); in fakeRemoteSocketPair() 678 ASSERT_NE(-1, *acceptedSocket); in fakeRemoteSocketPair() 683 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { in checkSocketpairOpen() argument 686 EXPECT_EQ(4, read(acceptedSocket, buf, sizeof(buf))); in checkSocketpairOpen() 690 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { in checkSocketpairClosed() argument 698 ret = write(acceptedSocket, "foo", sizeof("foo")); in checkSocketpairClosed() 705 int clientSocket, serverSocket, acceptedSocket; in TEST_F() local 706 ASSERT_NO_FATAL_FAILURE(fakeRemoteSocketPair(&clientSocket, &serverSocket, &acceptedSocket)); in TEST_F() [all …]
|