Home
last modified time | relevance | path

Searched refs:setOption (Results 1 – 25 of 59) sorted by relevance

123

/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java389 protected <T> void setOption(SocketOption<T> name, T value) throws IOException { in setOption() method in SocketImpl
392 setOption(SocketOptions.SO_KEEPALIVE, value); in setOption()
395 setOption(SocketOptions.SO_SNDBUF, value); in setOption()
397 setOption(SocketOptions.SO_RCVBUF, value); in setOption()
399 setOption(SocketOptions.SO_REUSEADDR, value); in setOption()
402 setOption(SocketOptions.SO_REUSEPORT, value); in setOption()
405 setOption(SocketOptions.SO_LINGER, value); in setOption()
407 setOption(SocketOptions.IP_TOS, value); in setOption()
410 setOption(SocketOptions.TCP_NODELAY, value); in setOption()
DDatagramSocketImpl.java281 protected <T> void setOption(SocketOption<T> name, T value) throws IOException { in setOption() method in DatagramSocketImpl
283 setOption(SocketOptions.SO_SNDBUF, value); in setOption()
285 setOption(SocketOptions.SO_RCVBUF, value); in setOption()
287 setOption(SocketOptions.SO_REUSEADDR, value); in setOption()
290 setOption(SocketOptions.SO_REUSEPORT, value); in setOption()
292 setOption(SocketOptions.IP_TOS, value); in setOption()
295 setOption(SocketOptions.IP_MULTICAST_IF2, value); in setOption()
304 setOption(SocketOptions.IP_MULTICAST_LOOP, value); in setOption()
DSocketSecrets.java36 … private static <T> void setOption(Object obj, SocketOption<T> name, T value) throws IOException { in setOption() method in SocketSecrets
46 impl.setOption(name, value); in setOption()
62 …private static <T> void setOption(DatagramSocket s, SocketOption<T> name, T value) throws IOExcept… in setOption() method in SocketSecrets
63 s.getImpl().setOption(name, value); in setOption()
DSocket.java1035 getImpl().setOption(SocketOptions.TCP_NODELAY, Boolean.valueOf(on)); in setTcpNoDelay()
1073 getImpl().setOption(SocketOptions.SO_LINGER, on); in setSoLinger()
1080 getImpl().setOption(SocketOptions.SO_LINGER, linger); in setSoLinger()
1160 getImpl().setOption(SocketOptions.SO_OOBINLINE, Boolean.valueOf(on)); in setOOBInline()
1203 getImpl().setOption(SocketOptions.SO_TIMEOUT, timeout); in setSoTimeout()
1259 getImpl().setOption(SocketOptions.SO_SNDBUF, size); in setSendBufferSize()
1333 getImpl().setOption(SocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
1372 getImpl().setOption(SocketOptions.SO_KEEPALIVE, Boolean.valueOf(on)); in setKeepAlive()
1444 getImpl().setOption(SocketOptions.IP_TOS, tc); in setTrafficClass()
1516 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress()
[all …]
DDatagramSocket.java939 getImpl().setOption(SocketOptions.SO_TIMEOUT, timeout); in setSoTimeout()
1001 getImpl().setOption(SocketOptions.SO_SNDBUF, size); in setSendBufferSize()
1059 getImpl().setOption(SocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
1121 getImpl().setOption(SocketOptions.SO_REUSEADDR, on?-1:0); in setReuseAddress()
1123 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress()
1162 getImpl().setOption(SocketOptions.SO_BROADCAST, Boolean.valueOf(on)); in setBroadcast()
1223 getImpl().setOption(SocketOptions.IP_TOS, tc); in setTrafficClass()
1378 public <T> DatagramSocket setOption(SocketOption<T> name, T value) in setOption() method in DatagramSocket
1381 getImpl().setOption(name, value); in setOption()
DServerSocket.java678 getImpl().setOption(SocketOptions.SO_TIMEOUT, timeout); in setSoTimeout()
740 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress()
875 getImpl().setOption(SocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
976 public <T> ServerSocket setOption(SocketOption<T> name, T value) in setOption() method in ServerSocket
979 getImpl().setOption(name, value); in setOption()
DMulticastSocket.java479 getImpl().setOption(SocketOptions.IP_MULTICAST_IF, inf); in setInterface()
562 getImpl().setOption(SocketOptions.IP_MULTICAST_IF2, netIf); in setNetworkInterface()
606 getImpl().setOption(SocketOptions.IP_MULTICAST_LOOP, Boolean.valueOf(disable)); in setLoopbackMode()
DSocketOptions.java91 setOption(int optID, Object value) throws SocketException; in setOption() method
/libcore/ojluni/src/test/java/net/SocketOptions/
DMinimumRcvBufferSize.java43 channel.setOption(StandardSocketOptions.SO_RCVBUF, 0); in testBufferSize()
45 channel.setOption(StandardSocketOptions.SO_RCVBUF, Integer.MAX_VALUE); in testBufferSize()
53 channel1.setOption(StandardSocketOptions.SO_SNDBUF, 0); in testBufferSize()
55 channel1.setOption(StandardSocketOptions.SO_SNDBUF, Integer.MAX_VALUE); in testBufferSize()
DTcpKeepAliveTest.java57 ss.setOption(ExtendedSocketOptions.TCP_KEEPIDLE, DEFAULT_KEEP_ALIVE_TIME); in testTcpKeepAlive()
63 ss.setOption(ExtendedSocketOptions.TCP_KEEPCOUNT, DEFAULT_KEEP_ALIVE_PROBES); in testTcpKeepAlive()
69 ss.setOption(ExtendedSocketOptions.TCP_KEEPINTERVAL, DEFAULT_KEEP_ALIVE_INTVL); in testTcpKeepAlive()
75 s.setOption(ExtendedSocketOptions.TCP_KEEPIDLE, DEFAULT_KEEP_ALIVE_TIME); in testTcpKeepAlive()
81 s.setOption(ExtendedSocketOptions.TCP_KEEPCOUNT, DEFAULT_KEEP_ALIVE_PROBES); in testTcpKeepAlive()
87 s.setOption(ExtendedSocketOptions.TCP_KEEPINTERVAL, DEFAULT_KEEP_ALIVE_INTVL); in testTcpKeepAlive()
DQuickAckTest.java56 Sockets.setOption(ss, ExtendedSocketOptions.TCP_QUICKACK, true); in TestQuickAck()
63 Sockets.setOption(s, ExtendedSocketOptions.TCP_QUICKACK, true); in TestQuickAck()
DOptionsTest.java101 c.setOption((SocketOption)test.option, test.testValue); in doSocketTests()
123 c.setOption((SocketOption)test.option, test.testValue); in doDgSocketTests()
142 c.setOption((SocketOption)test.option, test.testValue); in doMcSocketTests()
163 c.setOption((SocketOption)test.option, test.testValue); in doServerSocketTests()
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketTest.java91 ss.setOption(StandardSocketOptions.SO_REUSEADDR, true); in testSetGetOption()
94 ss.setOption(StandardSocketOptions.SO_REUSEADDR, false); in testSetGetOption()
99 ss.setOption(new SocketOption<>() { in testSetGetOption()
/libcore/ojluni/src/main/java/sun/net/ext/
DExtendedSocketOptions.java82 public abstract void setOption(FileDescriptor fd, SocketOption<?> option, Object value) in setOption() method in ExtendedSocketOptions
123 public void setOption(FileDescriptor fd, SocketOption<?> option, Object value) in setOption() method in ExtendedSocketOptions.NoExtendedSocketOptions
/libcore/luni/src/test/java/libcore/java/nio/channels/
DServerSocketChannelTest.java244 sc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in set_option()
249 sc.setOption(StandardSocketOptions.SO_REUSEADDR, false); in set_option()
254 sc.setOption(StandardSocketOptions.SO_RCVBUF, 1100); in set_option()
259 sc.setOption(StandardSocketOptions.SO_RCVBUF, 2000); in set_option()
DAsynchronousServerSocketChannelTest.java209 assc.setOption(StandardSocketOptions.SO_RCVBUF, 5000); in test_options()
212 assc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in test_options()
222 assc.setOption(StandardSocketOptions.SO_KEEPALIVE, true); in test_options_iae()
270 assc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in test_close()
DAsynchronousSocketChannelTest.java254 asc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in test_close()
839 asc.setOption(StandardSocketOptions.SO_SNDBUF, 5000); in test_options()
842 asc.setOption(StandardSocketOptions.SO_RCVBUF, 5000); in test_options()
845 asc.setOption(StandardSocketOptions.SO_KEEPALIVE, true); in test_options()
848 asc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in test_options()
851 asc.setOption(StandardSocketOptions.TCP_NODELAY, true); in test_options()
860 asc.setOption(StandardSocketOptions.IP_TOS, 5); in test_options_iae()
/libcore/ojluni/src/main/java/sun/nio/ch/
DServerSocketAdaptor.java162 ssc.setOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress()
190 ssc.setOption(StandardSocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
DDatagramSocketAdaptor.java269 dc.setOption(name, value); in setBooleanOption()
279 dc.setOption(name, value); in setIntOption()
414 public void setOption(int optID, Object value) throws SocketException {}
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java174 public static <T> void setOption(Socket s, SocketOption<T> name, T value) throws IOException in setOption() method in Sockets
232 … public static <T> void setOption(ServerSocket s, SocketOption<T> name, T value) throws IOException in setOption() method in Sockets
291 …public static <T> void setOption(DatagramSocket s, SocketOption<T> name, T value) throws IOExcepti… in setOption() method in Sockets
/libcore/ojluni/src/main/java/java/nio/channels/
DNetworkChannel.java130 <T> NetworkChannel setOption(SocketOption<T> name, T value) throws IOException; in setOption() method
DServerSocketChannel.java214 public abstract <T> ServerSocketChannel setOption(SocketOption<T> name, T value) in setOption() method in ServerSocketChannel
DAsynchronousServerSocketChannel.java244 public abstract <T> AsynchronousServerSocketChannel setOption(SocketOption<T> name, T value) in setOption() method in AsynchronousServerSocketChannel
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketImplTest.java167 public void setOption(int optID, Object val) throws SocketException { in setOption() method in MockDatagramSocketImpl
173 super.setOption(option, value); in setSuperOption()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DMockServerSocketChannel.java55 public <T> ServerSocketChannel setOption(SocketOption<T> name, T value) throws IOException { in setOption() method in MockServerSocketChannel

123