Home
last modified time | relevance | path

Searched refs:SO_RCVBUF (Results 1 – 25 of 36) sorted by relevance

12

/libcore/ojluni/src/test/java/net/SocketOptions/
DMinimumRcvBufferSize.java43 channel.setOption(StandardSocketOptions.SO_RCVBUF, 0); in testBufferSize()
44 int before = channel.getOption(StandardSocketOptions.SO_RCVBUF); in testBufferSize()
45 channel.setOption(StandardSocketOptions.SO_RCVBUF, Integer.MAX_VALUE); in testBufferSize()
46 int after = channel.getOption(StandardSocketOptions.SO_RCVBUF); in testBufferSize()
DOptionsTest.java61 TestClass.create(StandardSocketOptions.SO_RCVBUF, Integer.valueOf(8 * 100)),
69 TestClass.create(StandardSocketOptions.SO_RCVBUF, Integer.valueOf(8 * 100)),
77 TestClass.create(StandardSocketOptions.SO_RCVBUF, Integer.valueOf(8 * 100)),
192 } else if (option.equals(StandardSocketOptions.SO_RCVBUF)) { in legacyGetOption()
212 if (option.equals(StandardSocketOptions.SO_RCVBUF)) { in legacyGetOption()
230 } else if (option.equals(StandardSocketOptions.SO_RCVBUF)) { in legacyGetOption()
249 } else if (option.equals(StandardSocketOptions.SO_RCVBUF)) { in legacyGetOption()
/libcore/ojluni/src/main/java/java/net/
DDatagramSocketImpl.java284 } else if (name == StandardSocketOptions.SO_RCVBUF) { in setOption()
285 setOption(SocketOptions.SO_RCVBUF, value); in setOption()
329 } else if (name == StandardSocketOptions.SO_RCVBUF) { in getOption()
330 return (T) getOption(SocketOptions.SO_RCVBUF); in getOption()
359 StandardSocketOptions.SO_RCVBUF,
364 StandardSocketOptions.SO_RCVBUF,
DSocketImpl.java396 } else if (name == StandardSocketOptions.SO_RCVBUF) { in setOption()
397 setOption(SocketOptions.SO_RCVBUF, value); in setOption()
439 } else if (name == StandardSocketOptions.SO_RCVBUF) { in getOption()
440 return (T)getOption(SocketOptions.SO_RCVBUF); in getOption()
466 StandardSocketOptions.SO_RCVBUF,
472 serverSocketOptions = Set.of(StandardSocketOptions.SO_RCVBUF,
DSocketOptions.java308 @Native public static final int SO_RCVBUF = 0x1002; field
DStandardSocketOptions.java155 public static final SocketOption<Integer> SO_RCVBUF = field in StandardSocketOptions
DAbstractPlainDatagramSocketImpl.java315 case SO_RCVBUF: in setOption()
372 case SO_RCVBUF: in getOption()
DServerSocket.java875 getImpl().setOption(SocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
897 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize()
DDatagramSocket.java1059 getImpl().setOption(SocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
1075 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize()
DSocket.java1333 getImpl().setOption(SocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
1353 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTestCase.java35 public static final int SO_RCVBUF = 3; field in OldSocketTestCase
66 case SO_RCVBUF: in getOptionIsSupported()
141 case SO_RCVBUF: in getSocketOptionString()
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java359 set.add(StandardSocketOptions.SO_RCVBUF); in initOptionSets()
373 set.add(StandardSocketOptions.SO_RCVBUF); in initOptionSets()
383 set.add(StandardSocketOptions.SO_RCVBUF); in initOptionSets()
396 set.add(StandardSocketOptions.SO_RCVBUF); in initOptionSets()
/libcore/ojluni/src/main/java/sun/nio/ch/
DServerSocketAdaptor.java190 ssc.setOption(StandardSocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
198 return ssc.getOption(StandardSocketOptions.SO_RCVBUF).intValue(); in getReceiveBufferSize()
DSocketAdaptor.java379 setIntOption(StandardSocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
383 return getIntOption(StandardSocketOptions.SO_RCVBUF); in getReceiveBufferSize()
DDatagramSocketAdaptor.java316 setIntOption(StandardSocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
320 return getIntOption(StandardSocketOptions.SO_RCVBUF); in getReceiveBufferSize()
DSocketOptionRegistry.java65 … map.put(new RegistryKey(StandardSocketOptions.SO_RCVBUF, Net.UNSPEC), new OptionKey(1, 8)); in options()
DAsynchronousServerSocketChannelImpl.java232 set.add(StandardSocketOptions.SO_RCVBUF); in defaultOptions()
DServerSocketChannelImpl.java186 set.add(StandardSocketOptions.SO_RCVBUF); in defaultOptions()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketImplTest.java69 setAndAssertOption(impl, StandardSocketOptions.SO_RCVBUF, in testSetOption()
70 SocketOptions.SO_RCVBUF, 2); in testSetOption()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DServerSocketChannelTest.java254 sc.setOption(StandardSocketOptions.SO_RCVBUF, 1100); in set_option()
255 assertTrue(1100 <= sc.getOption(StandardSocketOptions.SO_RCVBUF)); in set_option()
259 sc.setOption(StandardSocketOptions.SO_RCVBUF, 2000); in set_option()
DAsynchronousServerSocketChannelTest.java209 assc.setOption(StandardSocketOptions.SO_RCVBUF, 5000); in test_options()
210 assertEquals(5000, (long)assc.getOption(StandardSocketOptions.SO_RCVBUF)); in test_options()
348 assertTrue(supportedOptions.contains(StandardSocketOptions.SO_RCVBUF)); in test_supportedOptions()
DAsynchronousSocketChannelTest.java842 asc.setOption(StandardSocketOptions.SO_RCVBUF, 5000); in test_options()
843 assertEquals(5000, (long) asc.getOption(StandardSocketOptions.SO_RCVBUF)); in test_options()
874 assertTrue(supportedOptions.contains(StandardSocketOptions.SO_RCVBUF)); in test_supportedOptions()
/libcore/ojluni/src/main/native/
Dnet_util_md.c918 { java_net_SocketOptions_SO_RCVBUF, SOL_SOCKET, SO_RCVBUF },
1005 || (opt == SO_RCVBUF))) { in NET_GetSockOpt()
1109 if (opt == SO_SNDBUF || opt == SO_RCVBUF) { in NET_SetSockOpt()
1168 if (level == SOL_SOCKET && opt == SO_RCVBUF) { in NET_SetSockOpt()
1183 if (opt == SO_SNDBUF || opt == SO_RCVBUF) { in NET_SetSockOpt()
1211 if (opt == SO_RCVBUF && *bufsize < 1024) { in NET_SetSockOpt()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java409 case SocketOptions.SO_RCVBUF: in getSocketOptionErrno()
410 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_RCVBUF); in getSocketOptionErrno()
507 case SocketOptions.SO_RCVBUF: in setSocketOptionErrno()
508 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_RCVBUF, (Integer) value); in setSocketOptionErrno()
/libcore/luni/annotations/flagged_api/android/system/
DOsConstants.annotated.java1142 public static final int SO_RCVBUF; field in OsConstants
1143 static { SO_RCVBUF = 0; }

12