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.java119 FileDescriptor clientFd = Os.accept(serverFd, peerAddress); in checkUnixDomainSocket()
120 checkSockName(clientFd, isAbstract, address); in checkUnixDomainSocket()
123 checkNoPeerName(clientFd); in checkUnixDomainSocket()
125 StructUcred credentials = Os.getsockoptUcred(clientFd, SOL_SOCKET, SO_PEERCRED); in checkUnixDomainSocket()
131 Os.read(clientFd, request, 0, request.length); in checkUnixDomainSocket()
135 Os.write(clientFd, response, 0, response.length); in checkUnixDomainSocket()
137 Os.close(clientFd); in checkUnixDomainSocket()
145 FileDescriptor clientFd = Os.socket(AF_UNIX, SOCK_STREAM, 0); in checkUnixDomainSocket() local
147 Os.connect(clientFd, address); in checkUnixDomainSocket()
148 checkNoSockName(clientFd); in checkUnixDomainSocket()
[all …]
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp963 jint clientFd = NET_FAILURE_RETRY(env, int, accept, javaFd, peer, peerLength); in Linux_accept() local
964 if (clientFd == -1 || !fillSocketAddress(env, javaSocketAddress, ss, *peerLength)) { in Linux_accept()
965 close(clientFd); in Linux_accept()
968 return (clientFd != -1) ? jniCreateFileDescriptor(env, clientFd) : NULL; in Linux_accept()