Home
last modified time | relevance | path

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

12

/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()
DOldSocketTest.java351 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_RCVBUF); in test_getReceiveBufferSize()
353 handleException(e, SO_RCVBUF); in test_getReceiveBufferSize()
517 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_RCVBUF); in test_setReceiveBufferSizeI()
519 handleException(e, SO_RCVBUF); in test_setReceiveBufferSizeI()
/libcore/ojluni/src/main/java/java/net/
DDatagramSocketImpl.java259 } else if (name == StandardSocketOptions.SO_RCVBUF) { in setOption()
260 setOption(SocketOptions.SO_RCVBUF, value); in setOption()
285 } else if (name == StandardSocketOptions.SO_RCVBUF) { in getOption()
286 return (T) getOption(SocketOptions.SO_RCVBUF); in getOption()
DSocketImpl.java377 } else if (name == StandardSocketOptions.SO_RCVBUF) { in setOption()
378 setOption(SocketOptions.SO_RCVBUF, value); in setOption()
397 } else if (name == StandardSocketOptions.SO_RCVBUF) { in getOption()
398 return (T)getOption(SocketOptions.SO_RCVBUF); in getOption()
DSocketOptions.java296 @Native public final static 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.java851 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size)); in setReceiveBufferSize()
873 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize()
DDatagramSocket.java1057 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size)); in setReceiveBufferSize()
1073 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize()
DSocket.java1310 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size)); in setReceiveBufferSize()
1330 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF); in getReceiveBufferSize()
/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()
DDatagramSocketAdaptor.java316 setIntOption(StandardSocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
320 return getIntOption(StandardSocketOptions.SO_RCVBUF); in getReceiveBufferSize()
DSocketAdaptor.java379 setIntOption(StandardSocketOptions.SO_RCVBUF, size); in setReceiveBufferSize()
383 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()
DNet.java303 if (name == StandardSocketOptions.SO_RCVBUF ||
DAsynchronousSocketChannelImpl.java508 set.add(StandardSocketOptions.SO_RCVBUF); in defaultOptions()
DSocketChannelImpl.java275 set.add(StandardSocketOptions.SO_RCVBUF); in defaultOptions()
/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()
1108 if (opt == SO_SNDBUF || opt == SO_RCVBUF) { in NET_SetSockOpt()
1167 if (level == SOL_SOCKET && opt == SO_RCVBUF) { in NET_SetSockOpt()
1182 if (opt == SO_SNDBUF || opt == SO_RCVBUF) { in NET_SetSockOpt()
1210 if (opt == SO_RCVBUF && *bufsize < 1024) { in NET_SetSockOpt()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java410 case SocketOptions.SO_RCVBUF: in getSocketOptionErrno()
411 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()

12