Home
last modified time | relevance | path

Searched refs:SO_LINGER (Results 1 – 19 of 19) 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.java191 handleException(e, SO_LINGER); in test_close()
325 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_LINGER); in test_getSoLinger()
328 handleException(e, SO_LINGER); in test_getSoLinger()
541 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_LINGER); in test_setSoLingerZI()
544 handleException(e, SO_LINGER); in test_setSoLingerZI()
/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java381 } else if (name == StandardSocketOptions.SO_LINGER) { in setOption()
382 setOption(SocketOptions.SO_LINGER, value); in setOption()
401 } else if (name == StandardSocketOptions.SO_LINGER) { in getOption()
402 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.java1050 getImpl().setOption(SocketOptions.SO_LINGER, new Boolean(on)); in setSoLinger()
1057 getImpl().setOption(SocketOptions.SO_LINGER, new Integer(linger)); in setSoLinger()
1077 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.java333 setIntOption(StandardSocketOptions.SO_LINGER, linger); in setSoLinger()
337 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.java278 set.add(StandardSocketOptions.SO_LINGER); in defaultOptions()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java402 case SocketOptions.SO_LINGER: in getSocketOptionErrno()
403 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in getSocketOptionErrno()
494 case SocketOptions.SO_LINGER: in setSocketOptionErrno()
502 Libcore.os.setsockoptLinger(fd, SOL_SOCKET, SO_LINGER, linger); in setSocketOptionErrno()
DBlockGuardOs.java141 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in isLingerSocket()
/libcore/ojluni/src/main/native/
DNet.c468 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_getIntOption0()
491 if (level == SOL_SOCKET && opt == SO_LINGER) in Java_sun_nio_ch_Net_getIntOption0()
521 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_setIntOption0()
Dnet_util_md.c916 { java_net_SocketOptions_SO_LINGER, SOL_SOCKET, SO_LINGER },
1016 if (level == SOL_SOCKET && opt == SO_LINGER) { in NET_GetSockOpt()
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java361 set.add(StandardSocketOptions.SO_LINGER); in initOptionSets()
/libcore/luni/src/main/java/android/system/
DOsConstants.java707 public static final int SO_LINGER = placeholder(); field in OsConstants
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp544 initConstant(env, c, "SO_LINGER", SO_LINGER); in OsConstants_initConstants()
/libcore/api/
Dcurrent.txt491 field public static final int SO_LINGER;
5461 field public static final int SO_LINGER = 128; // 0x80
5493 field public static final java.net.SocketOption<java.lang.Integer> SO_LINGER;