/libcore/ojluni/src/main/java/java/net/ |
D | SocketImpl.java | 432 protected <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in SocketImpl 435 return (T)getOption(SocketOptions.SO_KEEPALIVE); in getOption() 438 return (T)getOption(SocketOptions.SO_SNDBUF); in getOption() 440 return (T)getOption(SocketOptions.SO_RCVBUF); in getOption() 442 return (T)getOption(SocketOptions.SO_REUSEADDR); in getOption() 445 return (T)getOption(SocketOptions.SO_REUSEPORT); in getOption() 448 return (T)getOption(SocketOptions.SO_LINGER); in getOption() 450 return (T)getOption(SocketOptions.IP_TOS); in getOption() 453 return (T)getOption(SocketOptions.TCP_NODELAY); in getOption()
|
D | DatagramSocketImpl.java | 326 protected <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in DatagramSocketImpl 328 return (T) getOption(SocketOptions.SO_SNDBUF); in getOption() 330 return (T) getOption(SocketOptions.SO_RCVBUF); in getOption() 332 return (T) getOption(SocketOptions.SO_REUSEADDR); in getOption() 335 return (T) getOption(SocketOptions.SO_REUSEPORT); in getOption() 337 return (T) getOption(SocketOptions.IP_TOS); in getOption() 340 return (T) getOption(SocketOptions.IP_MULTICAST_IF2); in getOption() 347 return (T) getOption(SocketOptions.IP_MULTICAST_LOOP); in getOption()
|
D | SocketSecrets.java | 49 private static <T> T getOption(Object obj, SocketOption<T> name) throws IOException { in getOption() method in SocketSecrets 59 return impl.getOption(name); in getOption() 66 private static <T> T getOption(DatagramSocket s, SocketOption<T> name) throws IOException { in getOption() method in SocketSecrets 67 return s.getImpl().getOption(name); in getOption()
|
D | Socket.java | 776 in = (InetAddress) getImpl().getOption(SocketOptions.SO_BINDADDR); in getLocalAddress() 1051 return ((Boolean) getImpl().getOption(SocketOptions.TCP_NODELAY)).booleanValue(); in getTcpNoDelay() 1100 Object o = getImpl().getOption(SocketOptions.SO_LINGER); in getSoLinger() 1177 return ((Boolean) getImpl().getOption(SocketOptions.SO_OOBINLINE)).booleanValue(); in getOOBInline() 1220 Object o = getImpl().getOption(SocketOptions.SO_TIMEOUT); in getSoTimeout() 1279 Object o = getImpl().getOption(SocketOptions.SO_SNDBUF); in getSendBufferSize() 1353 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize() 1388 return ((Boolean) getImpl().getOption(SocketOptions.SO_KEEPALIVE)).booleanValue(); in getKeepAlive() 1475 return ((Integer) (getImpl().getOption(SocketOptions.IP_TOS))).intValue(); in getTrafficClass() 1532 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress() [all …]
|
D | DatagramSocket.java | 889 in = (InetAddress) getImpl().getOption(SocketOptions.SO_BINDADDR); in getLocalAddress() 956 Object o = getImpl().getOption(SocketOptions.SO_TIMEOUT); in getSoTimeout() 1017 Object o = getImpl().getOption(SocketOptions.SO_SNDBUF); in getSendBufferSize() 1075 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize() 1138 Object o = getImpl().getOption(SocketOptions.SO_REUSEADDR); in getReuseAddress() 1176 return ((Boolean)(getImpl().getOption(SocketOptions.SO_BROADCAST))).booleanValue(); in getBroadcast() 1251 return ((Integer)(getImpl().getOption(SocketOptions.IP_TOS))).intValue(); in getTrafficClass() 1408 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in DatagramSocket 1409 return getImpl().getOption(name); in getOption()
|
D | ServerSocket.java | 692 Object o = getImpl().getOption(SocketOptions.SO_TIMEOUT); in getSoTimeout() 756 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress() 897 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize() 1006 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in ServerSocket 1007 return getImpl().getOption(name); in getOption()
|
D | MulticastSocket.java | 504 (InetAddress)getImpl().getOption(SocketOptions.IP_MULTICAST_IF); in getInterface() 581 = (Integer)getImpl().getOption(SocketOptions.IP_MULTICAST_IF2); in getNetworkInterface() 618 return ((Boolean)getImpl().getOption(SocketOptions.IP_MULTICAST_LOOP)).booleanValue(); in getLoopbackMode()
|
D | SocketOptions.java | 126 public Object getOption(int optID) throws SocketException; in getOption() method
|
D | PlainDatagramSocketImpl.java | 77 protected <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in PlainDatagramSocketImpl 79 return super.getOption(name); in getOption()
|
/libcore/ojluni/src/test/java/net/SocketOptions/ |
D | MinimumRcvBufferSize.java | 44 int before = channel.getOption(StandardSocketOptions.SO_RCVBUF); in testBufferSize() 46 int after = channel.getOption(StandardSocketOptions.SO_RCVBUF); in testBufferSize() 54 before = channel1.getOption(StandardSocketOptions.SO_SNDBUF); in testBufferSize() 56 after = channel1.getOption(StandardSocketOptions.SO_SNDBUF); in testBufferSize()
|
D | TcpKeepAliveTest.java | 58 if (ss.getOption(ExtendedSocketOptions.TCP_KEEPIDLE) != DEFAULT_KEEP_ALIVE_TIME) { in testTcpKeepAlive() 64 … if (ss.getOption(ExtendedSocketOptions.TCP_KEEPCOUNT) != DEFAULT_KEEP_ALIVE_PROBES) { in testTcpKeepAlive() 70 … if (ss.getOption(ExtendedSocketOptions.TCP_KEEPINTERVAL) != DEFAULT_KEEP_ALIVE_INTVL) { in testTcpKeepAlive() 76 if (s.getOption(ExtendedSocketOptions.TCP_KEEPIDLE) != DEFAULT_KEEP_ALIVE_TIME) { in testTcpKeepAlive() 82 if (s.getOption(ExtendedSocketOptions.TCP_KEEPCOUNT) != DEFAULT_KEEP_ALIVE_PROBES) { in testTcpKeepAlive() 88 … if (s.getOption(ExtendedSocketOptions.TCP_KEEPINTERVAL) != DEFAULT_KEEP_ALIVE_INTVL) { in testTcpKeepAlive()
|
D | OptionsTest.java | 102 Object getval = c.getOption((SocketOption)test.option); in doSocketTests() 124 Object getval = c.getOption((SocketOption)test.option); in doDgSocketTests() 143 Object getval = c.getOption((SocketOption)test.option); in doMcSocketTests() 164 Object getval = c.getOption((SocketOption)test.option); in doServerSocketTests() 197 return Boolean.valueOf(socket.getOption(StandardSocketOptions.SO_REUSEPORT)); in legacyGetOption() 217 return Boolean.valueOf(socket.getOption(StandardSocketOptions.SO_REUSEPORT)); in legacyGetOption() 235 return Boolean.valueOf(socket.getOption(StandardSocketOptions.SO_REUSEPORT)); in legacyGetOption() 254 return Boolean.valueOf(socket.getOption(StandardSocketOptions.SO_REUSEPORT)); in legacyGetOption() 288 return Integer.valueOf(ss.getOption(StandardSocketOptions.IP_TOS)); in getServerSocketTrafficClass()
|
D | QuickAckTest.java | 57 if (!ss.getOption(ExtendedSocketOptions.TCP_QUICKACK)) { in TestQuickAck() 64 if (!s.getOption(ExtendedSocketOptions.TCP_QUICKACK)) { in TestQuickAck()
|
/libcore/ojluni/src/main/java/sun/net/ext/ |
D | ExtendedSocketOptions.java | 86 public abstract Object getOption(FileDescriptor fd, SocketOption<?> option) in getOption() method in ExtendedSocketOptions 131 public Object getOption(FileDescriptor fd, SocketOption<?> option) in getOption() method in ExtendedSocketOptions.NoExtendedSocketOptions
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | ServerSocketTest.java | 92 assertTrue(ss.getOption(StandardSocketOptions.SO_REUSEADDR)); in testSetGetOption() 95 assertFalse(ss.getOption(StandardSocketOptions.SO_REUSEADDR)); in testSetGetOption()
|
D | OldSocketImplFactoryTest.java | 57 assertNull(si.getOption(0)); in test_createSocketImpl() 170 public Object getOption(int arg0) throws SocketException { in getOption() method in OldSocketImplFactoryTest.MockSocketImpl
|
D | OldDatagramSocketImplFactoryTest.java | 76 assertNull(dsi.getOption(0)); in test_createDatagramSocketImpl() 198 public Object getOption(int arg0) throws SocketException { in getOption() method in OldDatagramSocketImplFactoryTest.TestDatagramSocketImpl
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ServerSocketAdaptor.java | 170 return ssc.getOption(StandardSocketOptions.SO_REUSEADDR).booleanValue(); in getReuseAddress() 198 return ssc.getOption(StandardSocketOptions.SO_RCVBUF).intValue(); in getReceiveBufferSize()
|
D | DatagramSocketAdaptor.java | 287 return dc.getOption(name).booleanValue(); in getBooleanOption() 296 return dc.getOption(name).intValue(); in getIntOption() 412 public Object getOption(int optID) throws SocketException { return null;}
|
D | FileDescriptorHolderSocketImpl.java | 54 public Object getOption(int optID) throws SocketException { in getOption() method in FileDescriptorHolderSocketImpl
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | NetworkChannel.java | 152 <T> T getOption(SocketOption<T> name) throws IOException; in getOption() method
|
/libcore/ojluni/src/main/java/jdk/net/ |
D | Sockets.java | 202 public static <T> T getOption(Socket s, SocketOption<T> name) throws IOException in getOption() method in Sockets 260 public static <T> T getOption(ServerSocket s, SocketOption<T> name) throws IOException in getOption() method in Sockets 320 public static <T> T getOption(DatagramSocket s, SocketOption<T> name) throws IOException in getOption() method in Sockets
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ServerSocketChannelTest.java | 247 assertTrue(sc.getOption(StandardSocketOptions.SO_REUSEADDR)); in set_option() 252 assertEquals(false, (boolean)sc.getOption(StandardSocketOptions.SO_REUSEADDR)); in set_option() 255 assertTrue(1100 <= sc.getOption(StandardSocketOptions.SO_RCVBUF)); in set_option()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | MockServerSocketChannel.java | 70 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in MockServerSocketChannel
|
D | MockSocketChannel.java | 121 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in MockSocketChannel
|