Home
last modified time | relevance | path

Searched refs:getsockname (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java165 UnixSocketAddress isa = (UnixSocketAddress) Os.getsockname(fd); in checkSockName()
181 checkNoName((UnixSocketAddress) Os.getsockname(fd)); in checkNoSockName()
253 InetSocketAddress address = (InetSocketAddress) Os.getsockname(serverFd); in checkByteBufferPositions_sendto_recvfrom()
381 InetSocketAddress socknameISA = (InetSocketAddress) Os.getsockname(socket); in expectBindConnectSendtoSuccess()
405 assertEquals(Os.getsockname(socket), Os.getpeername(socket)); in expectBindConnectSendtoSuccess()
541 NetlinkSocketAddress address = (NetlinkSocketAddress) Os.getsockname(nlSocket); in test_NetlinkSocket()
559 PacketSocketAddress bound = (PacketSocketAddress) Os.getsockname(fd); in test_PacketSocketAddress()
587 InetSocketAddress to = ((InetSocketAddress) Os.getsockname(recvFd)); in checkSendToSocketAddress()
610 InetSocketAddress localSocketAddress = (InetSocketAddress) Os.getsockname(fd); in test_socketFamilies()
615 localSocketAddress = (InetSocketAddress) Os.getsockname(fd); in test_socketFamilies()
[all …]
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java355 return ((InetSocketAddress) Libcore.os.getsockname(fd)).getAddress(); in getSocketOptionErrno()
696 SocketAddress socketAddress = Libcore.os.getsockname(fd); in getLocalInetSocketAddress()
DForwardingOs.java126 …public SocketAddress getsockname(FileDescriptor fd) throws ErrnoException { return os.getsockname(… in getsockname() method in ForwardingOs
DOs.java102 public SocketAddress getsockname(FileDescriptor fd) throws ErrnoException; in getsockname() method
DLinux.java100 public native SocketAddress getsockname(FileDescriptor fd) throws ErrnoException; in getsockname() method in Linux
/libcore/ojluni/src/main/native/
DNet.c370 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { in Java_sun_nio_ch_Net_localPort()
411 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { in Java_sun_nio_ch_Net_localInetAddress()
/libcore/luni/src/main/java/android/system/
DOs.java259 …public static SocketAddress getsockname(FileDescriptor fd) throws ErrnoException { return Libcore.… in getsockname() method in Os
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp764 int rc = is_sockname ? TEMP_FAILURE_RETRY(getsockname(fd, sa, &byteCount)) in doGetSockName()
2627 NATIVE_METHOD(Linux, getsockname, "(Ljava/io/FileDescriptor;)Ljava/net/SocketAddress;"),