Home
last modified time | relevance | path

Searched refs:getOption (Results 1 – 25 of 43) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java386 <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()
DDatagramSocketImpl.java282 <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()
DSocketSecrets.java49 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()
DSocket.java746 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()
DDatagramSocket.java887 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()
DSocketOptions.java125 public Object getOption(int optID) throws SocketException; in getOption() method
DMulticastSocket.java496 (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()
DServerSocket.java668 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()
DPlainDatagramSocketImpl.java76 protected <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in PlainDatagramSocketImpl
78 return super.getOption(name); in getOption()
DPlainSocketImpl.java91 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/
DNetworkChannel.java152 <T> T getOption(SocketOption<T> name) throws IOException; in getOption() method
/libcore/luni/src/test/java/libcore/java/nio/channels/
DServerSocketChannelTest.java176 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()
DAsynchronousSocketChannelTest.java840 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/
DOldSocketImplFactoryTest.java57 assertNull(si.getOption(0)); in test_createSocketImpl()
170 public Object getOption(int arg0) throws SocketException { in getOption() method in OldSocketImplFactoryTest.MockSocketImpl
DOldDatagramSocketImplFactoryTest.java76 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/
DServerSocketAdaptor.java170 return ssc.getOption(StandardSocketOptions.SO_REUSEADDR).booleanValue(); in getReuseAddress()
198 return ssc.getOption(StandardSocketOptions.SO_RCVBUF).intValue(); in getReceiveBufferSize()
DDatagramSocketAdaptor.java287 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;}
DFileDescriptorHolderSocketImpl.java52 public Object getOption(int optID) throws SocketException { in getOption() method in FileDescriptorHolderSocketImpl
DSocketAdaptor.java304 return sc.getOption(name).booleanValue(); in getBooleanOption()
313 return sc.getOption(name).intValue(); in getIntOption()
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java201 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/
DMockServerSocketChannel.java70 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in MockServerSocketChannel
DMockSocketChannel.java121 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in MockSocketChannel
DMockDatagramChannel.java111 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/
DSocketImplTest.java118 public Object getOption(int optID) throws SocketException { in getOption() method in SocketImplTest.MockSocketImpl
DDatagramSocketImplTest.java81 public Object getOption(int optID) throws SocketException { in getOption() method in MockDatagramSocketImpl

12