Home
last modified time | relevance | path

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

123

/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java372 <T> void setOption(SocketOption<T> name, T value) throws IOException { in setOption() method in SocketImpl
374 setOption(SocketOptions.SO_KEEPALIVE, value); in setOption()
376 setOption(SocketOptions.SO_SNDBUF, value); in setOption()
378 setOption(SocketOptions.SO_RCVBUF, value); in setOption()
380 setOption(SocketOptions.SO_REUSEADDR, value); in setOption()
382 setOption(SocketOptions.SO_LINGER, value); in setOption()
384 setOption(SocketOptions.IP_TOS, value); in setOption()
386 setOption(SocketOptions.TCP_NODELAY, value); in setOption()
DDatagramSocketImpl.java256 <T> void setOption(SocketOption<T> name, T value) throws IOException { in setOption() method in DatagramSocketImpl
258 setOption(SocketOptions.SO_SNDBUF, value); in setOption()
260 setOption(SocketOptions.SO_RCVBUF, value); in setOption()
262 setOption(SocketOptions.SO_REUSEADDR, value); in setOption()
264 setOption(SocketOptions.IP_TOS, value); in setOption()
267 setOption(SocketOptions.IP_MULTICAST_IF2, value); in setOption()
276 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.java1012 getImpl().setOption(SocketOptions.TCP_NODELAY, Boolean.valueOf(on)); in setTcpNoDelay()
1050 getImpl().setOption(SocketOptions.SO_LINGER, new Boolean(on)); in setSoLinger()
1057 getImpl().setOption(SocketOptions.SO_LINGER, new Integer(linger)); in setSoLinger()
1137 getImpl().setOption(SocketOptions.SO_OOBINLINE, Boolean.valueOf(on)); in setOOBInline()
1180 getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); in setSoTimeout()
1236 getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size)); in setSendBufferSize()
1310 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size)); in setReceiveBufferSize()
1349 getImpl().setOption(SocketOptions.SO_KEEPALIVE, Boolean.valueOf(on)); in setKeepAlive()
1421 getImpl().setOption(SocketOptions.IP_TOS, tc); in setTrafficClass()
1493 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress()
DDatagramSocket.java937 getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); in setSoTimeout()
999 getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size)); in setSendBufferSize()
1057 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size)); in setReceiveBufferSize()
1119 getImpl().setOption(SocketOptions.SO_REUSEADDR, new Integer(on?-1:0)); in setReuseAddress()
1121 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress()
1160 getImpl().setOption(SocketOptions.SO_BROADCAST, Boolean.valueOf(on)); in setBroadcast()
1221 getImpl().setOption(SocketOptions.IP_TOS, tc); in setTrafficClass()
DMulticastSocket.java473 getImpl().setOption(SocketOptions.IP_MULTICAST_IF, inf); in setInterface()
556 getImpl().setOption(SocketOptions.IP_MULTICAST_IF2, netIf); in setNetworkInterface()
599 getImpl().setOption(SocketOptions.IP_MULTICAST_LOOP, Boolean.valueOf(disable)); in setLoopbackMode()
DSocketOptions.java90 setOption(int optID, Object value) throws SocketException; in setOption() method
DServerSocket.java654 getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); in setSoTimeout()
716 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress()
851 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size)); in setReceiveBufferSize()
DPlainDatagramSocketImpl.java64 protected <T> void setOption(SocketOption<T> name, T value) throws IOException { in setOption() method in PlainDatagramSocketImpl
66 super.setOption(name, value); in setOption()
DPlainSocketImpl.java89 protected <T> void setOption(SocketOption<T> name, T value) throws IOException { in setOption() method in PlainSocketImpl
91 super.setOption(name, value); in setOption()
/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 {}
DFileDescriptorHolderSocketImpl.java47 public void setOption(int optID, Object value) throws SocketException { in setOption() method in FileDescriptorHolderSocketImpl
/libcore/ojluni/src/main/java/java/nio/channels/
DNetworkChannel.java130 <T> NetworkChannel setOption(SocketOption<T> name, T value) throws IOException; in setOption() method
DServerSocketChannel.java209 public abstract <T> ServerSocketChannel setOption(SocketOption<T> name, T value) in setOption() method in ServerSocketChannel
DAsynchronousServerSocketChannel.java239 public abstract <T> AsynchronousServerSocketChannel setOption(SocketOption<T> name, T value) in setOption() method in AsynchronousServerSocketChannel
DDatagramChannel.java226 public abstract <T> DatagramChannel setOption(SocketOption<T> name, T value) in setOption() method in DatagramChannel
DSocketChannel.java250 public abstract <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption() method in SocketChannel
/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/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
DMockSocketChannel.java105 public <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption() method in MockSocketChannel
/libcore/ojluni/annotations/hiddenapi/java/net/
DPlainSocketImpl.java41 protected <T> void setOption(java.net.SocketOption<T> name, T value) in setOption() method in PlainSocketImpl

123