Home
last modified time | relevance | path

Searched refs:SO_RCVBUF (Results 1 – 25 of 28) 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.java348 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_RCVBUF); in test_getReceiveBufferSize()
350 handleException(e, SO_RCVBUF); in test_getReceiveBufferSize()
514 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_RCVBUF); in test_setReceiveBufferSizeI()
516 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.java373 } else if (name == StandardSocketOptions.SO_RCVBUF) { in setOption()
374 setOption(SocketOptions.SO_RCVBUF, value); in setOption()
393 } else if (name == StandardSocketOptions.SO_RCVBUF) { in getOption()
394 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/luni/src/test/java/libcore/java/nio/channels/
DServerSocketChannelTest.java183 sc.setOption(StandardSocketOptions.SO_RCVBUF, 1100); in test_setOption()
184 assertTrue(1100 <= sc.getOption(StandardSocketOptions.SO_RCVBUF)); in test_setOption()
188 sc.setOption(StandardSocketOptions.SO_RCVBUF, 2000); in test_setOption()
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/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()
DAsynchronousSocketChannelImpl.java508 set.add(StandardSocketOptions.SO_RCVBUF); in defaultOptions()
DNet.java303 if (name == StandardSocketOptions.SO_RCVBUF ||
DSocketChannelImpl.java275 set.add(StandardSocketOptions.SO_RCVBUF); in defaultOptions()
/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.java344 case SocketOptions.SO_RCVBUF: in getSocketOptionErrno()
345 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_RCVBUF); in getSocketOptionErrno()
439 case SocketOptions.SO_RCVBUF: in setSocketOptionErrno()
440 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_RCVBUF, (Integer) value); in setSocketOptionErrno()

12