Home
last modified time | relevance | path

Searched refs:acceptedSocket (Results 1 – 2 of 2) sorted by relevance

/system/netd/client/
DNetdClient.cpp56 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags); in netdClientAccept4() local
57 if (acceptedSocket == -1) { in netdClientAccept4()
65 if (getsockopt(acceptedSocket, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in netdClientAccept4()
66 return closeFdAndSetErrno(acceptedSocket, -errno); in netdClientAccept4()
71 if (int error = FwmarkClient().send(&command, acceptedSocket, nullptr)) { in netdClientAccept4()
72 return closeFdAndSetErrno(acceptedSocket, error); in netdClientAccept4()
75 return acceptedSocket; in netdClientAccept4()
/system/netd/tests/
Dbinder_test.cpp88 static void fakeRemoteSocketPair(int *clientSocket, int *serverSocket, int *acceptedSocket);
378 void BinderTest::fakeRemoteSocketPair(int *clientSocket, int *serverSocket, int *acceptedSocket) { in fakeRemoteSocketPair() argument
393 *acceptedSocket = accept(*serverSocket, (struct sockaddr *) &server6, &addrlen); in fakeRemoteSocketPair()
394 ASSERT_NE(-1, *acceptedSocket); in fakeRemoteSocketPair()
399 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { in checkSocketpairOpen() argument
402 EXPECT_EQ(4, read(acceptedSocket, buf, sizeof(buf))); in checkSocketpairOpen()
406 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { in checkSocketpairClosed() argument
414 ret = write(acceptedSocket, "foo", sizeof("foo")); in checkSocketpairClosed()
421 int clientSocket, serverSocket, acceptedSocket; in TEST_F() local
422 ASSERT_NO_FATAL_FAILURE(fakeRemoteSocketPair(&clientSocket, &serverSocket, &acceptedSocket)); in TEST_F()
[all …]