Home
last modified time | relevance | path

Searched refs:linger (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/native/
DNet.c451 struct linger linger; in Java_sun_nio_ch_Net_getIntOption0() local
469 arg = (void *)&linger; in Java_sun_nio_ch_Net_getIntOption0()
470 arglen = sizeof(linger); in Java_sun_nio_ch_Net_getIntOption0()
492 return linger.l_onoff ? (jint)linger.l_linger : (jint)-1; in Java_sun_nio_ch_Net_getIntOption0()
503 struct linger linger; in Java_sun_nio_ch_Net_setIntOption0() local
522 parg = (void *)&linger; in Java_sun_nio_ch_Net_setIntOption0()
523 arglen = sizeof(linger); in Java_sun_nio_ch_Net_setIntOption0()
525 linger.l_onoff = 1; in Java_sun_nio_ch_Net_setIntOption0()
526 linger.l_linger = arg; in Java_sun_nio_ch_Net_setIntOption0()
528 linger.l_onoff = 0; in Java_sun_nio_ch_Net_setIntOption0()
[all …]
Dnet_util_md.c1017 struct linger* to_cast = (struct linger*)result; in NET_GetSockOpt()
/libcore/ojluni/src/main/java/java/net/
DSocket.java1046 public void setSoLinger(boolean on, int linger) throws SocketException { in setSoLinger() argument
1052 if (linger < 0) { in setSoLinger()
1055 if (linger > 65535) in setSoLinger()
1056 linger = 65535; in setSoLinger()
1057 getImpl().setOption(SocketOptions.SO_LINGER, new Integer(linger)); in setSoLinger()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketAdaptor.java330 public void setSoLinger(boolean on, int linger) throws SocketException { in setSoLinger() argument
332 linger = -1; in setSoLinger()
333 setIntOption(StandardSocketOptions.SO_LINGER, linger); in setSoLinger()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java336 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in getSocketOptionErrno() local
337 if (!linger.isOn()) { in getSocketOptionErrno()
340 return linger.l_linger; in getSocketOptionErrno()
432 StructLinger linger = new StructLinger(booleanToInt(on), seconds); in setSocketOptionErrno() local
433 Libcore.os.setsockoptLinger(fd, SOL_SOCKET, SO_LINGER, linger); in setSocketOptionErrno()
DBlockGuardOs.java122 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in isLingerSocket() local
123 return linger.isOn() && linger.l_linger > 0; in isLingerSocket()
/libcore/ojluni/annotations/mmodule/java/net/
DSocket.annotated.java86 public void setSoLinger(boolean on, int linger) throws java.net.SocketException { throw new Runtime… in setSoLinger() argument
/libcore/ojluni/annotations/hiddenapi/java/net/
DSocket.java181 public void setSoLinger(boolean on, int linger) throws java.net.SocketException { in setSoLinger() argument
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp530 static jobject makeStructLinger(JNIEnv* env, const struct linger& l) { in makeStructLinger()
1496 struct linger l; in Linux_getsockoptLinger()
2347 struct linger value; in Linux_setsockoptLinger()
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java3588 …ide public void setSoLinger(boolean on, int linger) throws SocketException { delegate.setSoLinger(…