Home
last modified time | relevance | path

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

/system/netd/client/
DNetdClient.cpp53 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags); in netdClientAccept4() local
54 if (acceptedSocket == -1) { in netdClientAccept4()
62 if (getsockopt(acceptedSocket, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in netdClientAccept4()
63 return closeFdAndSetErrno(acceptedSocket, -errno); in netdClientAccept4()
68 if (int error = FwmarkClient().send(&command, acceptedSocket)) { in netdClientAccept4()
69 return closeFdAndSetErrno(acceptedSocket, error); in netdClientAccept4()
72 return acceptedSocket; in netdClientAccept4()
/system/netd/tests/
Dbinder_test.cpp87 static void fakeRemoteSocketPair(int *clientSocket, int *serverSocket, int *acceptedSocket);
377 void BinderTest::fakeRemoteSocketPair(int *clientSocket, int *serverSocket, int *acceptedSocket) { in fakeRemoteSocketPair() argument
392 *acceptedSocket = accept(*serverSocket, (struct sockaddr *) &server6, &addrlen); in fakeRemoteSocketPair()
393 ASSERT_NE(-1, *acceptedSocket); in fakeRemoteSocketPair()
398 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { in checkSocketpairOpen() argument
401 EXPECT_EQ(4, read(acceptedSocket, buf, sizeof(buf))); in checkSocketpairOpen()
405 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { in checkSocketpairClosed() argument
413 ret = write(acceptedSocket, "foo", sizeof("foo")); in checkSocketpairClosed()
420 int clientSocket, serverSocket, acceptedSocket; in TEST_F() local
421 ASSERT_NO_FATAL_FAILURE(fakeRemoteSocketPair(&clientSocket, &serverSocket, &acceptedSocket)); in TEST_F()
[all …]