Home
last modified time | relevance | path

Searched refs:SO_LINGER (Results 1 – 18 of 18) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTestCase.java33 public static final int SO_LINGER = 2; field in OldSocketTestCase
71 case SO_LINGER: in getOptionIsSupported()
139 case SO_LINGER: in getSocketOptionString()
DOldSocketTest.java188 handleException(e, SO_LINGER); in test_close()
322 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_LINGER); in test_getSoLinger()
325 handleException(e, SO_LINGER); in test_getSoLinger()
538 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_LINGER); in test_setSoLingerZI()
541 handleException(e, SO_LINGER); in test_setSoLingerZI()
/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java375 } else if (name == StandardSocketOptions.SO_LINGER) { in setOption()
376 setOption(SocketOptions.SO_LINGER, value); in setOption()
395 } else if (name == StandardSocketOptions.SO_LINGER) { in getOption()
396 return (T)getOption(SocketOptions.SO_LINGER); in getOption()
DSocketOptions.java240 @Native public final static int SO_LINGER = 0x0080; field
DStandardSocketOptions.java218 public static final SocketOption<Integer> SO_LINGER = field in StandardSocketOptions
DSocket.java1045 getImpl().setOption(SocketOptions.SO_LINGER, new Boolean(on)); in setSoLinger()
1052 getImpl().setOption(SocketOptions.SO_LINGER, new Integer(linger)); in setSoLinger()
1072 Object o = getImpl().getOption(SocketOptions.SO_LINGER); in getSoLinger()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java293 sc.setOption(StandardSocketOptions.SO_LINGER, 1000); in test_setOption()
296 assertEquals(1000, (int) sc.<Integer>getOption(StandardSocketOptions.SO_LINGER)); in test_setOption()
302 sc.setOption(StandardSocketOptions.SO_LINGER, 2000); in test_setOption()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketAdaptor.java331 setIntOption(StandardSocketOptions.SO_LINGER, linger); in setSoLinger()
335 return getIntOption(StandardSocketOptions.SO_LINGER); in getSoLinger()
DSocketOptionRegistry.java63 … map.put(new RegistryKey(StandardSocketOptions.SO_LINGER, Net.UNSPEC), new OptionKey(1, 13)); in options()
DNet.java310 if (name == StandardSocketOptions.SO_LINGER) {
DSocketChannelImpl.java276 set.add(StandardSocketOptions.SO_LINGER); in defaultOptions()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java325 case SocketOptions.SO_LINGER: in getSocketOptionErrno()
326 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in getSocketOptionErrno()
415 case SocketOptions.SO_LINGER: in setSocketOptionErrno()
423 Libcore.os.setsockoptLinger(fd, SOL_SOCKET, SO_LINGER, linger); in setSocketOptionErrno()
DBlockGuardOs.java120 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in isLingerSocket()
/libcore/ojluni/src/main/native/
DNet.c453 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_getIntOption0()
476 if (level == SOL_SOCKET && opt == SO_LINGER) in Java_sun_nio_ch_Net_getIntOption0()
506 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_setIntOption0()
Dnet_util_md.c902 { java_net_SocketOptions_SO_LINGER, SOL_SOCKET, SO_LINGER }, in NET_MapSocketOption()
1001 if (level == SOL_SOCKET && opt == SO_LINGER) { in NET_GetSockOpt()
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java360 set.add(StandardSocketOptions.SO_LINGER); in initOptionSets()
/libcore/luni/src/main/java/android/system/
DOsConstants.java473 public static final int SO_LINGER = placeholder(); field in OsConstants
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp524 initConstant(env, c, "SO_LINGER", SO_LINGER); in OsConstants_initConstants()