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.cpp299 void socketpair(int *clientSocket, int *serverSocket, int *acceptedSocket) { in socketpair() argument
313 *acceptedSocket = accept(*serverSocket, (struct sockaddr *) &server6, &addrlen); in socketpair()
314 ASSERT_NE(-1, *acceptedSocket); in socketpair()
319 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { in checkSocketpairOpen() argument
322 EXPECT_EQ(4, read(acceptedSocket, buf, sizeof(buf))); in checkSocketpairOpen()
326 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { in checkSocketpairClosed() argument
334 ret = write(acceptedSocket, "foo", sizeof("foo")); in checkSocketpairClosed()
341 int clientSocket, serverSocket, acceptedSocket; in TEST_F() local
342 ASSERT_NO_FATAL_FAILURE(socketpair(&clientSocket, &serverSocket, &acceptedSocket)); in TEST_F()
362 checkSocketpairOpen(clientSocket, acceptedSocket); in TEST_F()
[all …]