Home
last modified time | relevance | path

Searched refs:SO_KEEPALIVE (Results 1 – 17 of 17) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTestCase.java43 public static final int SO_KEEPALIVE = 7; field in OldSocketTestCase
76 case SO_KEEPALIVE: in getOptionIsSupported()
149 case SO_KEEPALIVE: in getSocketOptionString()
DOldSocketTest.java244 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_KEEPALIVE); in test_getKeepAlive()
246 handleException(e, SO_KEEPALIVE); in test_getKeepAlive()
443 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_KEEPALIVE); in test_setKeepAliveZ()
445 handleException(e, SO_KEEPALIVE); in test_setKeepAliveZ()
/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java367 if (name == StandardSocketOptions.SO_KEEPALIVE) { in setOption()
368 setOption(SocketOptions.SO_KEEPALIVE, value); in setOption()
387 if (name == StandardSocketOptions.SO_KEEPALIVE) { in getOption()
388 return (T)getOption(SocketOptions.SO_KEEPALIVE); in getOption()
DSocketOptions.java319 @Native public final static int SO_KEEPALIVE = 0x0008; field
DStandardSocketOptions.java84 public static final SocketOption<Boolean> SO_KEEPALIVE = field in StandardSocketOptions
DSocket.java1344 getImpl().setOption(SocketOptions.SO_KEEPALIVE, Boolean.valueOf(on)); in setKeepAlive()
1360 return ((Boolean) getImpl().getOption(SocketOptions.SO_KEEPALIVE)).booleanValue(); in getKeepAlive()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketAdaptor.java385 setBooleanOption(StandardSocketOptions.SO_KEEPALIVE, on); in setKeepAlive()
389 return getBooleanOption(StandardSocketOptions.SO_KEEPALIVE); in getKeepAlive()
DSocketOptionRegistry.java62 … map.put(new RegistryKey(StandardSocketOptions.SO_KEEPALIVE, Net.UNSPEC), new OptionKey(1, 9)); in options()
DAsynchronousSocketChannelImpl.java509 set.add(StandardSocketOptions.SO_KEEPALIVE); in defaultOptions()
DSocketChannelImpl.java274 set.add(StandardSocketOptions.SO_KEEPALIVE); in defaultOptions()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java323 case SocketOptions.SO_KEEPALIVE: in getSocketOptionErrno()
324 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE)); in getSocketOptionErrno()
412 case SocketOptions.SO_KEEPALIVE: in setSocketOptionErrno()
413 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value)); in setSocketOptionErrno()
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java356 set.add(StandardSocketOptions.SO_KEEPALIVE); in initOptionSets()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousSocketChannelTest.java845 asc.setOption(StandardSocketOptions.SO_KEEPALIVE, true); in test_options()
846 assertTrue(asc.getOption(StandardSocketOptions.SO_KEEPALIVE)); in test_options()
876 assertTrue(supportedOptions.contains(StandardSocketOptions.SO_KEEPALIVE)); in test_supportedOptions()
DAsynchronousServerSocketChannelTest.java222 assc.setOption(StandardSocketOptions.SO_KEEPALIVE, true); in test_options_iae()
/libcore/luni/src/main/java/android/system/
DOsConstants.java472 public static final int SO_KEEPALIVE = placeholder(); field in OsConstants
/libcore/ojluni/src/main/native/
Dnet_util_md.c905 { java_net_SocketOptions_SO_KEEPALIVE, SOL_SOCKET, SO_KEEPALIVE }, in NET_MapSocketOption()
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp523 initConstant(env, c, "SO_KEEPALIVE", SO_KEEPALIVE); in OsConstants_initConstants()