Home
last modified time | relevance | path

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

/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()
DOldSocketTest.java372 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_SNDBUF); in test_getSendBufferSize()
374 handleException(e, SO_SNDBUF); in test_getSendBufferSize()
491 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_SNDBUF); in test_setSendBufferSizeI()
493 handleException(e, SO_SNDBUF); in test_setSendBufferSizeI()
/libcore/ojluni/src/main/java/java/net/
DDatagramSocketImpl.java257 if (name == StandardSocketOptions.SO_SNDBUF) { in setOption()
258 setOption(SocketOptions.SO_SNDBUF, value); in setOption()
283 if (name == StandardSocketOptions.SO_SNDBUF) { in getOption()
284 return (T) getOption(SocketOptions.SO_SNDBUF); in getOption()
DSocketImpl.java371 } else if (name == StandardSocketOptions.SO_SNDBUF) { in setOption()
372 setOption(SocketOptions.SO_SNDBUF, value); in setOption()
391 } else if (name == StandardSocketOptions.SO_SNDBUF) { in getOption()
392 return (T)getOption(SocketOptions.SO_SNDBUF); in getOption()
DSocketOptions.java278 @Native public final static 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.java999 getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size)); in setSendBufferSize()
1015 Object o = getImpl().getOption(SocketOptions.SO_SNDBUF); in getSendBufferSize()
DSocket.java1236 getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size)); in setSendBufferSize()
1256 Object o = getImpl().getOption(SocketOptions.SO_SNDBUF); in getSendBufferSize()
/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/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelTest.java173 dc.setOption(StandardSocketOptions.SO_SNDBUF, 4096); in test_setOption()
176 assertEquals(4096, (int) dc.getOption(StandardSocketOptions.SO_SNDBUF)); in test_setOption()
182 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()
DDatagramChannelImpl.java322 set.add(StandardSocketOptions.SO_SNDBUF); in defaultOptions()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java348 case SocketOptions.SO_SNDBUF: in getSocketOptionErrno()
349 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_SNDBUF); in getSocketOptionErrno()
445 case SocketOptions.SO_SNDBUF: in setSocketOptionErrno()
446 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()
1108 if (opt == SO_SNDBUF || opt == SO_RCVBUF) { in NET_SetSockOpt()
1182 if (opt == SO_SNDBUF || opt == SO_RCVBUF) { in NET_SetSockOpt()
/libcore/luni/src/main/java/android/system/
DOsConstants.java583 public static final int SO_SNDBUF = placeholder(); field in OsConstants
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp547 initConstant(env, c, "SO_SNDBUF", SO_SNDBUF); in OsConstants_initConstants()