/libcore/ojluni/src/test/java/net/SocketOptions/ |
D | MinimumRcvBufferSize.java | 43 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()
|
D | OptionsTest.java | 61 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/ |
D | DatagramSocketImpl.java | 284 } 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,
|
D | SocketImpl.java | 396 } 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,
|
D | SocketOptions.java | 308 @Native public static final int SO_RCVBUF = 0x1002; field
|
D | StandardSocketOptions.java | 155 public static final SocketOption<Integer> SO_RCVBUF = field in StandardSocketOptions
|
D | AbstractPlainDatagramSocketImpl.java | 315 case SO_RCVBUF: in setOption() 372 case SO_RCVBUF: in getOption()
|
D | ServerSocket.java | 875 getImpl().setOption(SocketOptions.SO_RCVBUF, size); in setReceiveBufferSize() 897 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize()
|
D | DatagramSocket.java | 1059 getImpl().setOption(SocketOptions.SO_RCVBUF, size); in setReceiveBufferSize() 1075 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize()
|
D | Socket.java | 1333 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/ |
D | OldSocketTestCase.java | 35 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/ |
D | Sockets.java | 359 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/ |
D | ServerSocketAdaptor.java | 190 ssc.setOption(StandardSocketOptions.SO_RCVBUF, size); in setReceiveBufferSize() 198 return ssc.getOption(StandardSocketOptions.SO_RCVBUF).intValue(); in getReceiveBufferSize()
|
D | SocketAdaptor.java | 379 setIntOption(StandardSocketOptions.SO_RCVBUF, size); in setReceiveBufferSize() 383 return getIntOption(StandardSocketOptions.SO_RCVBUF); in getReceiveBufferSize()
|
D | DatagramSocketAdaptor.java | 316 setIntOption(StandardSocketOptions.SO_RCVBUF, size); in setReceiveBufferSize() 320 return getIntOption(StandardSocketOptions.SO_RCVBUF); in getReceiveBufferSize()
|
D | SocketOptionRegistry.java | 65 … map.put(new RegistryKey(StandardSocketOptions.SO_RCVBUF, Net.UNSPEC), new OptionKey(1, 8)); in options()
|
D | AsynchronousServerSocketChannelImpl.java | 232 set.add(StandardSocketOptions.SO_RCVBUF); in defaultOptions()
|
D | ServerSocketChannelImpl.java | 186 set.add(StandardSocketOptions.SO_RCVBUF); in defaultOptions()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | DatagramSocketImplTest.java | 69 setAndAssertOption(impl, StandardSocketOptions.SO_RCVBUF, in testSetOption() 70 SocketOptions.SO_RCVBUF, 2); in testSetOption()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ServerSocketChannelTest.java | 254 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()
|
D | AsynchronousServerSocketChannelTest.java | 209 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()
|
D | AsynchronousSocketChannelTest.java | 842 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/ |
D | net_util_md.c | 918 { 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/ |
D | IoBridge.java | 409 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/ |
D | OsConstants.annotated.java | 1142 public static final int SO_RCVBUF; field in OsConstants 1143 static { SO_RCVBUF = 0; }
|