Searched refs:linger (Results 1 – 10 of 10) sorted by relevance
/libcore/ojluni/src/main/native/ |
D | Net.c | 451 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 …]
|
D | net_util_md.c | 1017 struct linger* to_cast = (struct linger*)result; in NET_GetSockOpt()
|
/libcore/ojluni/src/main/java/java/net/ |
D | Socket.java | 1046 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/ |
D | SocketAdaptor.java | 330 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/ |
D | IoBridge.java | 336 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()
|
D | BlockGuardOs.java | 122 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/ |
D | Socket.annotated.java | 86 public void setSoLinger(boolean on, int linger) throws java.net.SocketException { throw new Runtime… in setSoLinger() argument
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | Socket.java | 181 public void setSoLinger(boolean on, int linger) throws java.net.SocketException { in setSoLinger() argument
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 530 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/ |
D | URLConnectionTest.java | 3588 …ide public void setSoLinger(boolean on, int linger) throws SocketException { delegate.setSoLinger(…
|