Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/net/SocketOptions/
DMinimumRcvBufferSize.java53 channel1.setOption(StandardSocketOptions.SO_SNDBUF, 0); in testBufferSize()
54 before = channel1.getOption(StandardSocketOptions.SO_SNDBUF); in testBufferSize()
55 channel1.setOption(StandardSocketOptions.SO_SNDBUF, Integer.MAX_VALUE); in testBufferSize()
56 after = channel1.getOption(StandardSocketOptions.SO_SNDBUF); in testBufferSize()
DOptionsTest.java60 TestClass.create(StandardSocketOptions.SO_SNDBUF, Integer.valueOf(10 * 100)),
76 TestClass.create(StandardSocketOptions.SO_SNDBUF, Integer.valueOf(10 * 100)),
190 } else if (option.equals(StandardSocketOptions.SO_SNDBUF)) { in legacyGetOption()
228 if (option.equals(StandardSocketOptions.SO_SNDBUF)) { in legacyGetOption()
247 if (option.equals(StandardSocketOptions.SO_SNDBUF)) { in legacyGetOption()
/libcore/ojluni/src/main/java/java/net/
DDatagramSocketImpl.java282 if (name == StandardSocketOptions.SO_SNDBUF) { in setOption()
283 setOption(SocketOptions.SO_SNDBUF, value); in setOption()
327 if (name == StandardSocketOptions.SO_SNDBUF) { in getOption()
328 return (T) getOption(SocketOptions.SO_SNDBUF); in getOption()
358 dgSocketOptions = Set.of(StandardSocketOptions.SO_SNDBUF,
363 mcSocketOptions = Set.of(StandardSocketOptions.SO_SNDBUF,
DSocketImpl.java393 } else if (name == StandardSocketOptions.SO_SNDBUF && in setOption()
395 setOption(SocketOptions.SO_SNDBUF, value); in setOption()
436 } else if (name == StandardSocketOptions.SO_SNDBUF && in getOption()
438 return (T)getOption(SocketOptions.SO_SNDBUF); in getOption()
465 StandardSocketOptions.SO_SNDBUF,
DSocketOptions.java290 @Native public static final int SO_SNDBUF = 0x1001; field
DStandardSocketOptions.java115 public static final SocketOption<Integer> SO_SNDBUF = field in StandardSocketOptions
DAbstractPlainDatagramSocketImpl.java316 case SO_SNDBUF: in setOption()
373 case SO_SNDBUF: in getOption()
DDatagramSocket.java1001 getImpl().setOption(SocketOptions.SO_SNDBUF, size); in setSendBufferSize()
1017 Object o = getImpl().getOption(SocketOptions.SO_SNDBUF); in getSendBufferSize()
DSocket.java1259 getImpl().setOption(SocketOptions.SO_SNDBUF, size); in setSendBufferSize()
1279 Object o = getImpl().getOption(SocketOptions.SO_SNDBUF); in getSendBufferSize()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTestCase.java39 public static final int SO_SNDBUF = 5; field in OldSocketTestCase
67 case SO_SNDBUF: in getOptionIsSupported()
145 case SO_SNDBUF: in getSocketOptionString()
DSocketTest.java302 setAndAssertOption(impl, StandardSocketOptions.SO_SNDBUF, in test_SocketOptions_setOption()
303 SocketOptions.SO_SNDBUF, 1); in test_SocketOptions_setOption()
DOldSocketTest.java375 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_SNDBUF); in test_getSendBufferSize()
377 handleException(e, SO_SNDBUF); in test_getSendBufferSize()
494 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_SNDBUF); in test_setSendBufferSizeI()
496 handleException(e, SO_SNDBUF); in test_setSendBufferSizeI()
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java358 set.add(StandardSocketOptions.SO_SNDBUF); in initOptionSets()
382 set.add(StandardSocketOptions.SO_SNDBUF); in initOptionSets()
395 set.add(StandardSocketOptions.SO_SNDBUF); in initOptionSets()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketImplTest.java67 setAndAssertOption(impl, StandardSocketOptions.SO_SNDBUF, in testSetOption()
68 SocketOptions.SO_SNDBUF, 1); in testSetOption()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelTest.java191 dc.setOption(StandardSocketOptions.SO_SNDBUF, 4096); in test_setOption()
194 assertEquals(4096, (int) dc.getOption(StandardSocketOptions.SO_SNDBUF)); in test_setOption()
200 dc.setOption(StandardSocketOptions.SO_SNDBUF, 4096); in test_setOption()
DAsynchronousSocketChannelTest.java839 asc.setOption(StandardSocketOptions.SO_SNDBUF, 5000); in test_options()
840 assertEquals(5000, (long) asc.getOption(StandardSocketOptions.SO_SNDBUF)); in test_options()
875 assertTrue(supportedOptions.contains(StandardSocketOptions.SO_SNDBUF)); in test_supportedOptions()
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramSocketAdaptor.java306 setIntOption(StandardSocketOptions.SO_SNDBUF, size); in setSendBufferSize()
310 return getIntOption(StandardSocketOptions.SO_SNDBUF); in getSendBufferSize()
DSocketAdaptor.java368 setIntOption(StandardSocketOptions.SO_SNDBUF, size); in setSendBufferSize()
372 return getIntOption(StandardSocketOptions.SO_SNDBUF); in getSendBufferSize()
DSocketOptionRegistry.java64 … map.put(new RegistryKey(StandardSocketOptions.SO_SNDBUF, Net.UNSPEC), new OptionKey(1, 7)); in options()
DAsynchronousSocketChannelImpl.java507 set.add(StandardSocketOptions.SO_SNDBUF); in defaultOptions()
DNet.java304 name == StandardSocketOptions.SO_SNDBUF)
DSocketChannelImpl.java274 set.add(StandardSocketOptions.SO_SNDBUF); in defaultOptions()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java413 case SocketOptions.SO_SNDBUF: in getSocketOptionErrno()
414 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_SNDBUF); in getSocketOptionErrno()
513 case SocketOptions.SO_SNDBUF: in setSocketOptionErrno()
514 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_SNDBUF, (Integer) value); in setSocketOptionErrno()
/libcore/ojluni/src/main/native/
Dnet_util_md.c917 { java_net_SocketOptions_SO_SNDBUF, SOL_SOCKET, SO_SNDBUF },
1004 if ((level == SOL_SOCKET) && ((opt == SO_SNDBUF) in NET_GetSockOpt()
1109 if (opt == SO_SNDBUF || opt == SO_RCVBUF) { in NET_SetSockOpt()
1183 if (opt == SO_SNDBUF || opt == SO_RCVBUF) { in NET_SetSockOpt()
/libcore/luni/annotations/flagged_api/android/system/
DOsConstants.annotated.java1154 public static final int SO_SNDBUF; field in OsConstants
1155 static { SO_SNDBUF = 0; }

12