Searched refs:Net (Results 1 - 19 of 19) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
H A DServerSocketAdaptor.java76 Net.translateException(x);
83 return Net.getRevealedLocalAddress(ssc.localAddress()).getAddress();
90 return Net.asInetSocketAddress(ssc.localAddress()).getPort();
116 int result = ssc.poll(Net.POLLIN, to);
129 Net.translateException(x);
164 Net.translateToSocketException(x);
172 Net.translateToSocketException(x);
192 Net.translateToSocketException(x);
200 Net.translateToSocketException(x);
H A DSocketOptionRegistry.java61 map.put(new RegistryKey(StandardSocketOptions.SO_BROADCAST, Net.UNSPEC), new OptionKey(1, 6));
62 map.put(new RegistryKey(StandardSocketOptions.SO_KEEPALIVE, Net.UNSPEC), new OptionKey(1, 9));
63 map.put(new RegistryKey(StandardSocketOptions.SO_LINGER, Net.UNSPEC), new OptionKey(1, 13));
64 map.put(new RegistryKey(StandardSocketOptions.SO_SNDBUF, Net.UNSPEC), new OptionKey(1, 7));
65 map.put(new RegistryKey(StandardSocketOptions.SO_RCVBUF, Net.UNSPEC), new OptionKey(1, 8));
66 map.put(new RegistryKey(StandardSocketOptions.SO_REUSEADDR, Net.UNSPEC), new OptionKey(1, 2));
67 map.put(new RegistryKey(StandardSocketOptions.TCP_NODELAY, Net.UNSPEC), new OptionKey(6, 1));
76 map.put(new RegistryKey(ExtendedSocketOption.SO_OOBINLINE, Net.UNSPEC), new OptionKey(1, 10));
H A DServerSocketChannelImpl.java88 this.fd = Net.serverSocket(true);
103 localAddress = Net.localAddress(fd);
121 : Net.getRevealedLocalAddress(
122 Net.asInetSocketAddress(localAddress));
139 ProtocolFamily family = Net.isIPv6Available() ?
141 Net.setSocketOption(fd, family, name, value);
146 Net.useExclusiveBind())
152 Net.setSocketOption(fd, Net.UNSPEC, name, value);
172 Net
[all...]
H A DDatagramChannelImpl.java139 this.family = Net.isIPv6Available() ?
141 this.fd = Net.socket(family, false);
145 // Net#socket will set |fd| if it succeeds.
168 if (!Net.isIPv6Available()) {
173 this.fd = Net.socket(family, false);
177 // Net#socket will set |fd| if it succeeds.
187 this.family = Net.isIPv6Available() ?
192 this.localAddress = Net.localAddress(fd);
213 return Net.getRevealedLocalAddress(localAddress);
243 Net
[all...]
H A DSocketChannelImpl.java128 this.fd = Net.socket(true);
133 // Net#socket will set |fd| if it succeeds.
155 this.localAddress = Net.localAddress(fd);
168 this.localAddress = Net.localAddress(fd);
189 return Net.getRevealedLocalAddress(localAddress);
216 ProtocolFamily family = Net.isIPv6Available() ?
218 Net.setSocketOption(fd, family, name, value);
222 if (name == StandardSocketOptions.SO_REUSEADDR && Net.useExclusiveBind()) {
229 Net.setSocketOption(fd, Net
[all...]
H A DAsynchronousServerSocketChannelImpl.java71 this.fd = Net.serverSocket(true);
151 Net.checkAddress(local);
162 Net.bind(fd, isa.getAddress(), isa.getPort());
163 Net.listen(fd, backlog < 1 ? 50 : backlog);
164 localAddress = Net.localAddress(fd);
176 return Net.getRevealedLocalAddress(localAddress);
192 Net.useExclusiveBind())
197 Net.setSocketOption(fd, Net.UNSPEC, name, value);
216 Net
[all...]
H A DDatagramSocketAdaptor.java72 InetSocketAddress isa = Net.asInetSocketAddress(remote);
83 Net.translateToSocketException(x);
93 Net.translateToSocketException(x);
129 ? Net.asInetSocketAddress(dc.remoteAddress()).getAddress()
135 ? Net.asInetSocketAddress(dc.remoteAddress()).getPort()
167 Net.translateException(x);
190 int result = dc.poll(Net.POLLIN, to);
192 ((result & Net.POLLIN) != 0)) {
221 Net.translateException(x);
271 Net
[all...]
H A DAsynchronousSocketChannelImpl.java90 this.fd = Net.socket(true);
103 this.localAddress = Net.localAddress(fd);
431 new InetSocketAddress(0) : Net.checkAddress(local);
437 Net.bind(fd, isa.getAddress(), isa.getPort());
438 localAddress = Net.localAddress(fd);
450 return Net.getRevealedLocalAddress(localAddress);
467 Net.useExclusiveBind())
472 Net.setSocketOption(fd, Net.UNSPEC, name, value);
491 Net
[all...]
H A DSocketAdaptor.java99 Net.translateException(ex);
115 int result = sc.poll(Net.POLLCONN, to);
132 Net.translateException(x, true);
142 Net.translateException(x);
164 return Net.getRevealedLocalAddress(local).getAddress();
219 int result = sc.poll(Net.POLLIN, to);
288 Net.translateToSocketException(x);
298 Net.translateToSocketException(x);
306 Net.translateToSocketException(x);
315 Net
[all...]
H A DSinkChannelImpl.java121 if ((ops & Net.POLLNVAL) != 0)
124 if ((ops & (Net.POLLERR | Net.POLLHUP)) != 0) {
130 if (((ops & Net.POLLOUT) != 0) &&
148 ops = Net.POLLOUT;
H A DSourceChannelImpl.java122 if ((ops & Net.POLLNVAL) != 0)
125 if ((ops & (Net.POLLERR | Net.POLLHUP)) != 0) {
131 if (((ops & Net.POLLIN) != 0) &&
149 ops = Net.POLLIN;
H A DPollArrayWrapper.java59 putEventOps(0, Net.POLLIN);
H A DUnixAsynchronousSocketChannelImpl.java161 events |= Net.POLLIN;
163 events |= Net.POLLOUT;
223 boolean readable = (events & Net.POLLIN) > 0;
224 boolean writable = (events & Net.POLLOUT) > 0;
225 if ((events & (Net.POLLERR | Net.POLLHUP)) > 0) {
272 localAddress = Net.localAddress(fd);
330 InetSocketAddress isa = Net.checkAddress(remote);
355 int n = Net.connect(fd, isa.getAddress(), isa.getPort());
H A DUnixAsynchronousServerSocketChannelImpl.java176 port.startPoll(fdVal, Net.POLLIN);
327 port.startPoll(fdVal, Net.POLLIN);
H A DEPollPort.java96 epollCtl(epfd, EPOLL_CTL_ADD, sv[0], Net.POLLIN);
H A DNet.java41 public class Net { class
43 private Net() { } method in class:Net
/libcore/ojluni/src/main/native/
H A DNet.c466 "sun.nio.ch.Net.getIntOption");
526 "sun.nio.ch.Net.setIntOption");
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, connect
[all...]
H A Dopenjdksub.mk48 Net.c \
/libcore/
H A Dopenjdk_java_files.mk1480 ojluni/src/main/java/sun/nio/ch/Net.java \

Completed in 126 milliseconds