Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java200 FileDescriptor clientFd = Os.accept(serverFd, peerAddress); in checkUnixDomainSocket()
201 checkSockName(clientFd, isAbstract, address); in checkUnixDomainSocket()
204 checkNoPeerName(clientFd); in checkUnixDomainSocket()
206 StructUcred credentials = Os.getsockoptUcred(clientFd, SOL_SOCKET, SO_PEERCRED); in checkUnixDomainSocket()
212 Os.read(clientFd, request, 0, request.length); in checkUnixDomainSocket()
216 Os.write(clientFd, response, 0, response.length); in checkUnixDomainSocket()
218 Os.close(clientFd); in checkUnixDomainSocket()
226 FileDescriptor clientFd = Os.socket(AF_UNIX, SOCK_STREAM, 0); in checkUnixDomainSocket() local
228 Os.connect(clientFd, address); in checkUnixDomainSocket()
229 checkNoSockName(clientFd); in checkUnixDomainSocket()
[all …]
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp1032 jint clientFd = NET_FAILURE_RETRY(env, int, accept, javaFd, peer, peerLength); in Linux_accept() local
1033 if (clientFd == -1 || !fillSocketAddress(env, javaSocketAddress, ss, *peerLength)) { in Linux_accept()
1034 close(clientFd); in Linux_accept()
1037 return createFileDescriptorIfOpen(env, clientFd); in Linux_accept()