Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java392 <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in SocketImpl
394 return (T)getOption(SocketOptions.SO_KEEPALIVE); in getOption()
396 return (T)getOption(SocketOptions.SO_SNDBUF); in getOption()
398 return (T)getOption(SocketOptions.SO_RCVBUF); in getOption()
400 return (T)getOption(SocketOptions.SO_REUSEADDR); in getOption()
402 return (T)getOption(SocketOptions.SO_LINGER); in getOption()
404 return (T)getOption(SocketOptions.IP_TOS); in getOption()
406 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.java751 in = (InetAddress) getImpl().getOption(SocketOptions.SO_BINDADDR); in getLocalAddress()
1028 return ((Boolean) getImpl().getOption(SocketOptions.TCP_NODELAY)).booleanValue(); in getTcpNoDelay()
1077 Object o = getImpl().getOption(SocketOptions.SO_LINGER); in getSoLinger()
1154 return ((Boolean) getImpl().getOption(SocketOptions.SO_OOBINLINE)).booleanValue(); in getOOBInline()
1197 Object o = getImpl().getOption(SocketOptions.SO_TIMEOUT); in getSoTimeout()
1256 Object o = getImpl().getOption(SocketOptions.SO_SNDBUF); in getSendBufferSize()
1330 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize()
1365 return ((Boolean) getImpl().getOption(SocketOptions.SO_KEEPALIVE)).booleanValue(); in getKeepAlive()
1452 return ((Integer) (getImpl().getOption(SocketOptions.IP_TOS))).intValue(); in getTrafficClass()
1509 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()
DMulticastSocket.java498 (InetAddress)getImpl().getOption(SocketOptions.IP_MULTICAST_IF); in getInterface()
574 = (Integer)getImpl().getOption(SocketOptions.IP_MULTICAST_IF2); in getNetworkInterface()
611 return ((Boolean)getImpl().getOption(SocketOptions.IP_MULTICAST_LOOP)).booleanValue(); in getLoopbackMode()
DSocketOptions.java125 public Object getOption(int optID) throws SocketException; in getOption() method
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.java77 protected <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in PlainDatagramSocketImpl
79 return super.getOption(name); in getOption()
DPlainSocketImpl.java102 protected <T> T getOption(SocketOption<T> name) throws IOException { in getOption() method in PlainSocketImpl
104 return super.getOption(name); in getOption()
/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.java306 return sc.getOption(name).booleanValue(); in getBooleanOption()
315 return sc.getOption(name).intValue(); in getIntOption()
/libcore/ojluni/src/main/java/java/nio/channels/
DNetworkChannel.java152 <T> T getOption(SocketOption<T> name) throws IOException; in getOption() method
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java202 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/
DServerSocketChannelTest.java247 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/
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/ojluni/annotations/hiddenapi/java/net/
DPlainSocketImpl.java46 protected <T> T getOption(java.net.SocketOption<T> name) throws java.io.IOException { in getOption() method in PlainSocketImpl
/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