Searched refs:setOption (Results 1 - 25 of 49) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
H A DSocketSecrets.java36 private static <T> void setOption(Object obj, SocketOption<T> name, T value) throws IOException { method in class:SocketSecrets
46 impl.setOption(name, value);
62 private static <T> void setOption(DatagramSocket s, SocketOption<T> name, T value) throws IOException { method in class:SocketSecrets
63 s.getImpl().setOption(name, value);
H A DDatagramSocketImpl.java256 <T> void setOption(SocketOption<T> name, T value) throws IOException { method in class:DatagramSocketImpl
258 setOption(SocketOptions.SO_SNDBUF, value);
260 setOption(SocketOptions.SO_RCVBUF, value);
262 setOption(SocketOptions.SO_REUSEADDR, value);
264 setOption(SocketOptions.IP_TOS, value);
267 setOption(SocketOptions.IP_MULTICAST_IF2, value);
276 setOption(SocketOptions.IP_MULTICAST_LOOP, value);
H A DSocketImpl.java366 <T> void setOption(SocketOption<T> name, T value) throws IOException { method in class:SocketImpl
368 setOption(SocketOptions.SO_KEEPALIVE, value);
370 setOption(SocketOptions.SO_SNDBUF, value);
372 setOption(SocketOptions.SO_RCVBUF, value);
374 setOption(SocketOptions.SO_REUSEADDR, value);
376 setOption(SocketOptions.SO_LINGER, value);
378 setOption(SocketOptions.IP_TOS, value);
380 setOption(SocketOptions.TCP_NODELAY, value);
H A DSocketOptions.java56 * s.setOption(SO_LINGER, new Integer(10));
58 * s.setOption(SO_LINGER, new Double(10));
64 * s.setOption(TCP_NODELAY, new Boolean(true));
70 * s.setOption(TCP_NODELAY, new Boolean(false));
72 * s.setOption(SO_LINGER, new Boolean(false));
90 setOption(int optID, Object value) throws SocketException; method in interface:SocketOptions
123 * @see #setOption(int, java.lang.Object)
H A DDatagramSocket.java937 getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout));
999 getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size));
1057 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size));
1119 getImpl().setOption(SocketOptions.SO_REUSEADDR, new Integer(on?-1:0));
1121 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on));
1160 getImpl().setOption(SocketOptions.SO_BROADCAST, Boolean.valueOf(on));
1221 getImpl().setOption(SocketOptions.IP_TOS, tc);
H A DSocket.java1007 getImpl().setOption(SocketOptions.TCP_NODELAY, Boolean.valueOf(on));
1045 getImpl().setOption(SocketOptions.SO_LINGER, new Boolean(on));
1052 getImpl().setOption(SocketOptions.SO_LINGER, new Integer(linger));
1132 getImpl().setOption(SocketOptions.SO_OOBINLINE, Boolean.valueOf(on));
1175 getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout));
1231 getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size));
1305 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size));
1344 getImpl().setOption(SocketOptions.SO_KEEPALIVE, Boolean.valueOf(on));
1416 getImpl().setOption(SocketOptions.IP_TOS, tc);
1488 getImpl().setOption(SocketOption
[all...]
H A DMulticastSocket.java471 getImpl().setOption(SocketOptions.IP_MULTICAST_IF, inf);
554 getImpl().setOption(SocketOptions.IP_MULTICAST_IF2, netIf);
596 getImpl().setOption(SocketOptions.IP_MULTICAST_LOOP, Boolean.valueOf(disable));
H A DServerSocket.java654 getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout));
716 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on));
851 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size));
/libcore/ojluni/src/main/java/java/nio/channels/
H A DNetworkChannel.java40 * the {@link #setOption(SocketOption,Object) setOption} and {@link
45 * <p> The {@link #bind bind} and {@link #setOption setOption} methods that do
130 <T> NetworkChannel setOption(SocketOption<T> name, T value) throws IOException; method in interface:NetworkChannel
H A DServerSocketChannel.java46 * <p> Socket options are configured using the {@link #setOption(SocketOption,Object)
47 * setOption} method. Server-socket channels support the following options:
209 public abstract <T> ServerSocketChannel setOption(SocketOption<T> name, T value) method in class:ServerSocketChannel
H A DAsynchronousServerSocketChannel.java52 * <p> Socket options are configured using the {@link #setOption(SocketOption,Object)
53 * setOption} method. Channels of this type support the following options:
239 public abstract <T> AsynchronousServerSocketChannel setOption(SocketOption<T> name, T value) method in class:AsynchronousServerSocketChannel
H A DDatagramChannel.java56 * <p> Socket options are configured using the {@link #setOption(SocketOption,Object)
57 * setOption} method. A datagram channel to an Internet Protocol socket supports
226 public abstract <T> DatagramChannel setOption(SocketOption<T> name, T value) method in class:DatagramChannel
H A DSocketChannel.java66 * <p> Socket options are configured using the {@link #setOption(SocketOption,Object)
67 * setOption} method. Socket channels support the following options:
250 public abstract <T> SocketChannel setOption(SocketOption<T> name, T value) method in class:SocketChannel
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DServerSocketAdaptor.java162 ssc.setOption(StandardSocketOptions.SO_REUSEADDR, on);
190 ssc.setOption(StandardSocketOptions.SO_RCVBUF, size);
H A DFileDescriptorHolderSocketImpl.java47 public void setOption(int optID, Object value) throws SocketException { method in class:FileDescriptorHolderSocketImpl
H A DDatagramSocketAdaptor.java269 dc.setOption(name, value);
279 dc.setOption(name, value);
414 public void setOption(int optID, Object value) throws SocketException {}
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DMockServerSocketChannel.java55 public <T> ServerSocketChannel setOption(SocketOption<T> name, T value) throws IOException { method in class:MockServerSocketChannel
H A DMockSocketChannel.java105 public <T> SocketChannel setOption(SocketOption<T> name, T value) method in class:MockSocketChannel
H A DMockDatagramChannel.java105 public <T> DatagramChannel setOption(SocketOption<T> name, T value) method in class:MockDatagramChannel
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DServerSocketChannelTest.java173 sc.setOption(StandardSocketOptions.SO_REUSEADDR, true);
178 sc.setOption(StandardSocketOptions.SO_REUSEADDR, false);
183 sc.setOption(StandardSocketOptions.SO_RCVBUF, 1100);
188 sc.setOption(StandardSocketOptions.SO_RCVBUF, 2000);
H A DAsynchronousServerSocketChannelTest.java209 assc.setOption(StandardSocketOptions.SO_RCVBUF, 5000);
212 assc.setOption(StandardSocketOptions.SO_REUSEADDR, true);
222 assc.setOption(StandardSocketOptions.SO_KEEPALIVE, true);
270 assc.setOption(StandardSocketOptions.SO_REUSEADDR, true);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DSocketImplTest.java129 public void setOption(int optID, Object val) throws SocketException { method in class:SocketImplTest.MockSocketImpl
H A DDatagramSocketImplTest.java138 public void setOption(int optID, Object val) throws SocketException { method in class:MockDatagramSocketImpl
/libcore/ojluni/src/main/java/jdk/net/
H A DSockets.java86 "setOption", Object.class,
97 "setOption", DatagramSocket.class,
173 public static <T> void setOption(Socket s, SocketOption<T> name, T value) throws IOException method in class:Sockets
231 public static <T> void setOption(ServerSocket s, SocketOption<T> name, T value) throws IOException method in class:Sockets
290 public static <T> void setOption(DatagramSocket s, SocketOption<T> name, T value) throws IOException method in class:Sockets
/libcore/luni/src/test/java/libcore/java/net/
H A DOldSocketImplFactoryTest.java174 public void setOption(int arg0, Object arg1) throws SocketException { method in class:OldSocketImplFactoryTest.MockSocketImpl

Completed in 487 milliseconds

12