/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ServerSocketChannelImpl.java | 88 this.fd = Net.serverSocket(true); in ServerSocketChannelImpl() 103 localAddress = Net.localAddress(fd); in ServerSocketChannelImpl() 120 : Net.getRevealedLocalAddress( in getLocalAddress() 121 Net.asInetSocketAddress(localAddress)); in getLocalAddress() 138 ProtocolFamily family = Net.isIPv6Available() ? in setOption() 140 Net.setSocketOption(fd, family, name, value); in setOption() 145 Net.useExclusiveBind()) in setOption() 151 Net.setSocketOption(fd, Net.UNSPEC, name, value); in setOption() 171 Net.useExclusiveBind()) in getOption() 177 return (T) Net.getSocketOption(fd, Net.UNSPEC, name); in getOption() [all …]
|
D | DatagramChannelImpl.java | 125 this.family = Net.isIPv6Available() ? in DatagramChannelImpl() 127 this.fd = Net.socket(family, false); in DatagramChannelImpl() 153 if (!Net.isIPv6Available()) { in DatagramChannelImpl() 158 this.fd = Net.socket(family, false); in DatagramChannelImpl() 171 this.family = Net.isIPv6Available() ? in DatagramChannelImpl() 176 this.localAddress = Net.localAddress(fd); in DatagramChannelImpl() 197 return Net.getRevealedLocalAddress(localAddress); in getLocalAddress() 227 Net.setSocketOption(fd, family, name, value); in setOption() 239 Net.setInterface6(fd, index); in setOption() 246 Inet4Address target = Net.anyInet4Address(interf); in setOption() [all …]
|
D | AsynchronousServerSocketChannelImpl.java | 71 this.fd = Net.serverSocket(true); in AsynchronousServerSocketChannelImpl() 151 Net.checkAddress(local); in bind() 162 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind() 163 Net.listen(fd, backlog < 1 ? 50 : backlog); in bind() 164 localAddress = Net.localAddress(fd); in bind() 176 return Net.getRevealedLocalAddress(localAddress); in getLocalAddress() 192 Net.useExclusiveBind()) in setOption() 197 Net.setSocketOption(fd, Net.UNSPEC, name, value); in setOption() 216 Net.useExclusiveBind()) in getOption() 221 return (T) Net.getSocketOption(fd, Net.UNSPEC, name); in getOption() [all …]
|
D | SocketChannelImpl.java | 130 this.fd = Net.socket(true); in SocketChannelImpl() 157 this.localAddress = Net.localAddress(fd); in SocketChannelImpl() 170 this.localAddress = Net.localAddress(fd); in SocketChannelImpl() 191 return Net.getRevealedLocalAddress(localAddress); in getLocalAddress() 218 ProtocolFamily family = Net.isIPv6Available() ? in setOption() 220 Net.setSocketOption(fd, family, name, value); in setOption() 224 if (name == StandardSocketOptions.SO_REUSEADDR && Net.useExclusiveBind()) { in setOption() 231 Net.setSocketOption(fd, Net.UNSPEC, name, value); in setOption() 251 Net.useExclusiveBind()) in getOption() 259 ProtocolFamily family = Net.isIPv6Available() ? in getOption() [all …]
|
D | ServerSocketAdaptor.java | 76 Net.translateException(x); in bind() 83 return Net.getRevealedLocalAddress(ssc.localAddress()).getAddress(); in getInetAddress() 90 return Net.asInetSocketAddress(ssc.localAddress()).getPort(); in getLocalPort() 116 int result = ssc.poll(Net.POLLIN, to); in accept() 129 Net.translateException(x); in accept() 164 Net.translateToSocketException(x); in setReuseAddress() 172 Net.translateToSocketException(x); in getReuseAddress() 192 Net.translateToSocketException(x); in setReceiveBufferSize() 200 Net.translateToSocketException(x); in getReceiveBufferSize()
|
D | SocketOptionRegistry.java | 61 … map.put(new RegistryKey(StandardSocketOptions.SO_BROADCAST, Net.UNSPEC), new OptionKey(1, 6)); in options() 62 … map.put(new RegistryKey(StandardSocketOptions.SO_KEEPALIVE, Net.UNSPEC), new OptionKey(1, 9)); in options() 63 … map.put(new RegistryKey(StandardSocketOptions.SO_LINGER, Net.UNSPEC), new OptionKey(1, 13)); in options() 64 … map.put(new RegistryKey(StandardSocketOptions.SO_SNDBUF, Net.UNSPEC), new OptionKey(1, 7)); in options() 65 … map.put(new RegistryKey(StandardSocketOptions.SO_RCVBUF, Net.UNSPEC), new OptionKey(1, 8)); in options() 66 … map.put(new RegistryKey(StandardSocketOptions.SO_REUSEADDR, Net.UNSPEC), new OptionKey(1, 2)); in options() 67 … map.put(new RegistryKey(StandardSocketOptions.TCP_NODELAY, Net.UNSPEC), new OptionKey(6, 1)); in options() 76 … map.put(new RegistryKey(ExtendedSocketOption.SO_OOBINLINE, Net.UNSPEC), new OptionKey(1, 10)); in options()
|
D | DatagramSocketAdaptor.java | 72 InetSocketAddress isa = Net.asInetSocketAddress(remote); in connectInternal() 83 Net.translateToSocketException(x); in connectInternal() 93 Net.translateToSocketException(x); in bind() 129 ? Net.asInetSocketAddress(dc.remoteAddress()).getAddress() in getInetAddress() 135 ? Net.asInetSocketAddress(dc.remoteAddress()).getPort() in getPort() 167 Net.translateException(x); in send() 190 int result = dc.poll(Net.POLLIN, to); in receive() 192 ((result & Net.POLLIN) != 0)) { in receive() 221 Net.translateException(x); in receive() 271 Net.translateToSocketException(x); in setBooleanOption() [all …]
|
D | SocketAdaptor.java | 103 Net.translateException(ex); in connect() 119 int result = sc.poll(Net.POLLCONN, to); in connect() 136 Net.translateException(x, true); in connect() 146 Net.translateException(x); in bind() 167 return Net.getRevealedLocalAddress(local).getAddress(); in getLocalAddress() 221 int result = sc.poll(Net.POLLIN, to); in read() 290 Net.translateToSocketException(x); in setBooleanOption() 300 Net.translateToSocketException(x); in setIntOption() 308 Net.translateToSocketException(x); in getBooleanOption() 317 Net.translateToSocketException(x); in getIntOption() [all …]
|
D | AsynchronousSocketChannelImpl.java | 90 this.fd = Net.socket(true); in AsynchronousSocketChannelImpl() 103 this.localAddress = Net.localAddress(fd); in AsynchronousSocketChannelImpl() 431 new InetSocketAddress(0) : Net.checkAddress(local); in bind() 437 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind() 438 localAddress = Net.localAddress(fd); in bind() 450 return Net.getRevealedLocalAddress(localAddress); in getLocalAddress() 467 Net.useExclusiveBind()) in setOption() 472 Net.setSocketOption(fd, Net.UNSPEC, name, value); in setOption() 491 Net.useExclusiveBind()) in getOption() 496 return (T) Net.getSocketOption(fd, Net.UNSPEC, name); in getOption() [all …]
|
D | SinkChannelImpl.java | 121 if ((ops & Net.POLLNVAL) != 0) in translateReadyOps() 124 if ((ops & (Net.POLLERR | Net.POLLHUP)) != 0) { in translateReadyOps() 130 if (((ops & Net.POLLOUT) != 0) && in translateReadyOps() 148 ops = Net.POLLOUT; in translateAndSetInterestOps()
|
D | SourceChannelImpl.java | 122 if ((ops & Net.POLLNVAL) != 0) in translateReadyOps() 125 if ((ops & (Net.POLLERR | Net.POLLHUP)) != 0) { in translateReadyOps() 131 if (((ops & Net.POLLIN) != 0) && in translateReadyOps() 149 ops = Net.POLLIN; in translateAndSetInterestOps()
|
D | UnixAsynchronousSocketChannelImpl.java | 155 events |= Net.POLLIN; in updateEvents() 157 events |= Net.POLLOUT; in updateEvents() 217 boolean readable = (events & Net.POLLIN) > 0; in onEvent() 218 boolean writable = (events & Net.POLLOUT) > 0; in onEvent() 219 if ((events & (Net.POLLERR | Net.POLLHUP)) > 0) { in onEvent() 267 localAddress = Net.localAddress(fd); in setConnected() 325 InetSocketAddress isa = Net.checkAddress(remote); in implConnect() 350 int n = Net.connect(fd, isa.getAddress(), isa.getPort()); in implConnect()
|
D | PollArrayWrapper.java | 59 putEventOps(0, Net.POLLIN); in initInterrupt()
|
D | UnixAsynchronousServerSocketChannelImpl.java | 174 port.startPoll(fdVal, Net.POLLIN); in onEvent() 325 port.startPoll(fdVal, Net.POLLIN); in implAccept()
|
D | EPollPort.java | 96 epollCtl(epfd, EPOLL_CTL_ADD, sv[0], Net.POLLIN); in EPollPort()
|
D | Net.java | 41 public class Net { class 43 private Net() { } in Net() method in Net
|
/libcore/ojluni/src/main/native/ |
D | Net.c | 872 NATIVE_METHOD(Net, isIPv6Available0, "()Z"), 873 NATIVE_METHOD(Net, isExclusiveBindAvailable, "()I"), 874 NATIVE_METHOD(Net, canIPv6SocketJoinIPv4Group0, "()Z"), 875 NATIVE_METHOD(Net, canJoin6WithIPv4Group0, "()Z"), 876 NATIVE_METHOD(Net, socket0, "(ZZZZ)I"), 877 NATIVE_METHOD(Net, bind0, "(Ljava/io/FileDescriptor;ZZLjava/net/InetAddress;I)V"), 878 NATIVE_METHOD(Net, listen, "(Ljava/io/FileDescriptor;I)V"), 879 NATIVE_METHOD(Net, connect0, "(ZLjava/io/FileDescriptor;Ljava/net/InetAddress;I)I"), 880 NATIVE_METHOD(Net, shutdown, "(Ljava/io/FileDescriptor;I)V"), 881 NATIVE_METHOD(Net, localPort, "(Ljava/io/FileDescriptor;)I"), [all …]
|
D | Android.bp | 60 "Net.c",
|
/libcore/ |
D | openjdk_java_files.bp | 1561 "ojluni/src/main/java/sun/nio/ch/Net.java",
|
/libcore/ojluni/ |
D | NOTICE | 8408 same terms. The copyright and license information for sun/nio/ch/Net.java
|