/libcore/ojluni/src/main/java/java/net/ |
D | SocketImpl.java | 386 <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in SocketImpl 388 return (T)getOption(SocketOptions.SO_KEEPALIVE); in getOption() 390 return (T)getOption(SocketOptions.SO_SNDBUF); in getOption() 392 return (T)getOption(SocketOptions.SO_RCVBUF); in getOption() 394 return (T)getOption(SocketOptions.SO_REUSEADDR); in getOption() 396 return (T)getOption(SocketOptions.SO_LINGER); in getOption() 398 return (T)getOption(SocketOptions.IP_TOS); in getOption() 400 return (T)getOption(SocketOptions.TCP_NODELAY); in getOption()
|
D | DatagramSocketImpl.java | 282 <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in DatagramSocketImpl 284 return (T) getOption(SocketOptions.SO_SNDBUF); in getOption() 286 return (T) getOption(SocketOptions.SO_RCVBUF); in getOption() 288 return (T) getOption(SocketOptions.SO_REUSEADDR); in getOption() 290 return (T) getOption(SocketOptions.IP_TOS); in getOption() 293 return (T) getOption(SocketOptions.IP_MULTICAST_IF2); in getOption() 300 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 | 746 in = (InetAddress) getImpl().getOption(SocketOptions.SO_BINDADDR); in getLocalAddress() 1023 return ((Boolean) getImpl().getOption(SocketOptions.TCP_NODELAY)).booleanValue(); in getTcpNoDelay() 1072 Object o = getImpl().getOption(SocketOptions.SO_LINGER); in getSoLinger() 1149 return ((Boolean) getImpl().getOption(SocketOptions.SO_OOBINLINE)).booleanValue(); in getOOBInline() 1192 Object o = getImpl().getOption(SocketOptions.SO_TIMEOUT); in getSoTimeout() 1251 Object o = getImpl().getOption(SocketOptions.SO_SNDBUF); in getSendBufferSize() 1325 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize() 1360 return ((Boolean) getImpl().getOption(SocketOptions.SO_KEEPALIVE)).booleanValue(); in getKeepAlive() 1447 return ((Integer) (getImpl().getOption(SocketOptions.IP_TOS))).intValue(); in getTrafficClass() 1504 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress()
|
D | DatagramSocket.java | 887 in = (InetAddress) getImpl().getOption(SocketOptions.SO_BINDADDR); in getLocalAddress() 954 Object o = getImpl().getOption(SocketOptions.SO_TIMEOUT); in getSoTimeout() 1015 Object o = getImpl().getOption(SocketOptions.SO_SNDBUF); in getSendBufferSize() 1073 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize() 1136 Object o = getImpl().getOption(SocketOptions.SO_REUSEADDR); in getReuseAddress() 1174 return ((Boolean)(getImpl().getOption(SocketOptions.SO_BROADCAST))).booleanValue(); in getBroadcast() 1249 return ((Integer)(getImpl().getOption(SocketOptions.IP_TOS))).intValue(); in getTrafficClass()
|
D | SocketOptions.java | 125 public Object getOption(int optID) throws SocketException; in getOption() method
|
D | MulticastSocket.java | 496 (InetAddress)getImpl().getOption(SocketOptions.IP_MULTICAST_IF); in getInterface() 571 = (Integer)getImpl().getOption(SocketOptions.IP_MULTICAST_IF2); in getNetworkInterface() 608 return ((Boolean)getImpl().getOption(SocketOptions.IP_MULTICAST_LOOP)).booleanValue(); in getLoopbackMode()
|
D | ServerSocket.java | 668 Object o = getImpl().getOption(SocketOptions.SO_TIMEOUT); in getSoTimeout() 732 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress() 873 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize()
|
D | PlainDatagramSocketImpl.java | 76 protected <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in PlainDatagramSocketImpl 78 return super.getOption(name); in getOption()
|
D | PlainSocketImpl.java | 91 protected <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in PlainSocketImpl 93 return super.getOption(name); in getOption()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | NetworkChannel.java | 152 <T> T getOption(SocketOption<T> name) throws IOException; in getOption() method
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ServerSocketChannelTest.java | 176 assertTrue(sc.getOption(StandardSocketOptions.SO_REUSEADDR)); in test_setOption() 181 assertEquals(false, (boolean)sc.getOption(StandardSocketOptions.SO_REUSEADDR)); in test_setOption() 184 assertTrue(1100 <= sc.getOption(StandardSocketOptions.SO_RCVBUF)); in test_setOption()
|
D | AsynchronousSocketChannelTest.java | 840 assertEquals(5000, (long) asc.getOption(StandardSocketOptions.SO_SNDBUF)); in test_options() 843 assertEquals(5000, (long) asc.getOption(StandardSocketOptions.SO_RCVBUF)); in test_options() 846 assertTrue(asc.getOption(StandardSocketOptions.SO_KEEPALIVE)); in test_options() 849 assertTrue(asc.getOption(StandardSocketOptions.SO_REUSEADDR)); in test_options() 852 assertTrue(asc.getOption(StandardSocketOptions.TCP_NODELAY)); in test_options()
|
/libcore/luni/src/test/java/libcore/java/net/ |
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 | 52 public Object getOption(int optID) throws SocketException { in getOption() method in FileDescriptorHolderSocketImpl
|
D | SocketAdaptor.java | 304 return sc.getOption(name).booleanValue(); in getBooleanOption() 313 return sc.getOption(name).intValue(); in getIntOption()
|
/libcore/ojluni/src/main/java/jdk/net/ |
D | Sockets.java | 201 public static <T> T getOption(Socket s, SocketOption<T> name) throws IOException in getOption() method in Sockets 259 public static <T> T getOption(ServerSocket s, SocketOption<T> name) throws IOException in getOption() method in Sockets 319 public static <T> T getOption(DatagramSocket s, SocketOption<T> name) throws IOException in getOption() method in Sockets
|
/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
|
D | MockDatagramChannel.java | 111 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in MockDatagramChannel
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | SocketImplTest.java | 118 public Object getOption(int optID) throws SocketException { in getOption() method in SocketImplTest.MockSocketImpl
|
D | DatagramSocketImplTest.java | 81 public Object getOption(int optID) throws SocketException { in getOption() method in MockDatagramSocketImpl
|