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.java247 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_KEEPALIVE); in test_getKeepAlive()
249 handleException(e, SO_KEEPALIVE); in test_getKeepAlive()
446 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_KEEPALIVE); in test_setKeepAliveZ()
448 handleException(e, SO_KEEPALIVE); in test_setKeepAliveZ()
/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java369 if (name == StandardSocketOptions.SO_KEEPALIVE) { in setOption()
370 setOption(SocketOptions.SO_KEEPALIVE, value); in setOption()
389 if (name == StandardSocketOptions.SO_KEEPALIVE) { in getOption()
390 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.java1349 getImpl().setOption(SocketOptions.SO_KEEPALIVE, Boolean.valueOf(on)); in setKeepAlive()
1365 return ((Boolean) getImpl().getOption(SocketOptions.SO_KEEPALIVE)).booleanValue(); in getKeepAlive()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketAdaptor.java387 setBooleanOption(StandardSocketOptions.SO_KEEPALIVE, on); in setKeepAlive()
391 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.java276 set.add(StandardSocketOptions.SO_KEEPALIVE); in defaultOptions()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java333 case SocketOptions.SO_KEEPALIVE: in getSocketOptionErrno()
334 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE)); in getSocketOptionErrno()
422 case SocketOptions.SO_KEEPALIVE: in setSocketOptionErrno()
423 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value)); in setSocketOptionErrno()
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java357 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.java571 public static final int SO_KEEPALIVE = placeholder(); field in OsConstants
/libcore/ojluni/src/main/native/
Dnet_util_md.c919 { java_net_SocketOptions_SO_KEEPALIVE, SOL_SOCKET, SO_KEEPALIVE },
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp535 initConstant(env, c, "SO_KEEPALIVE", SO_KEEPALIVE); in OsConstants_initConstants()