Home
last modified time | relevance | path

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

123

/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java432 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()
DDatagramSocketImpl.java326 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()
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.java776 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 …]
DDatagramSocket.java889 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()
DServerSocket.java692 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()
DMulticastSocket.java504 (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()
DSocketOptions.java126 public Object getOption(int optID) throws SocketException; in getOption() method
DPlainDatagramSocketImpl.java77 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/
DMinimumRcvBufferSize.java44 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()
DTcpKeepAliveTest.java58 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()
DOptionsTest.java102 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()
DQuickAckTest.java57 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/
DExtendedSocketOptions.java86 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/
DServerSocketTest.java92 assertTrue(ss.getOption(StandardSocketOptions.SO_REUSEADDR)); in testSetGetOption()
95 assertFalse(ss.getOption(StandardSocketOptions.SO_REUSEADDR)); in testSetGetOption()
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.java54 public Object getOption(int optID) throws SocketException { in getOption() method in FileDescriptorHolderSocketImpl
/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

123