Home
last modified time | relevance | path

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

/system/netd/tests/
Dsock_diag_test.cpp193 int clientsockets[NUM_SOCKETS], serversockets[NUM_SOCKETS]; in TEST_F() local
204 serversockets[i] = accept(listensocket, (sockaddr *) &client, &clientlen); in TEST_F()
205 ASSERT_NE(-1, serversockets[i]) in TEST_F()
235 ret = send(serversockets[i], "foo", sizeof("foo"), 0); in TEST_F()
251 close(serversockets[i]); in TEST_F()
/system/netd/server/
DSockDiagTest.cpp472 int clientsockets[MAX_SOCKETS], serversockets[MAX_SOCKETS]; in TEST_P() local
484 serversockets[i] = accept4( in TEST_P()
486 ASSERT_NE(-1, serversockets[i]) in TEST_P()
503 socketsClosed += checkSocketState(i, serversockets[i], "Server socket"); in TEST_P()
515 close(serversockets[i]); in TEST_P()