/openjdk7/jdk/test/java/nio/channels/ |
H A D | TestServers.java | 102 protected final long linger; // #of ms to wait before responding field in class:TestServers.AbstractTcpServer 113 * @param linger the amount of time the server should wait before 116 protected AbstractTcpServer(long linger) { argument 117 this.linger = linger; 194 * Calls {@code Thread.sleep(linger);} 197 if (linger > 0) { 199 Thread.sleep(linger); 350 public EchoServer(long linger) { argument 351 super(linger); 396 startNewServer(long linger) argument 416 DayTimeServer(long linger) argument 469 startNewServer(long linger) argument 486 protected final long linger; // #of ms to wait before responding field in class:TestServers.AbstractUdpServer 498 AbstractUdpServer(long linger) argument 713 UdpDiscardServer(long linger) argument 728 startNewServer(long linger) argument 748 UdpEchoServer(long linger) argument 784 startNewServer(long linger) argument 804 UdpDayTimeServer(long linger) argument 842 startNewServer(long linger) argument [all...] |
/openjdk7/jdk/test/java/nio/channels/SocketChannel/ |
H A D | SocketOptionTests.java | 60 int linger = sc.<Integer>getOption(SO_LINGER); 61 if (linger >= 0) 87 linger = sc.<Integer>getOption(SO_LINGER); 88 if (linger < 1) 89 throw new RuntimeException("expected linger to be enabled"); 91 linger = sc.<Integer>getOption(SO_LINGER); 92 if (linger >= 0) 93 throw new RuntimeException("expected linger to be disabled"); 108 linger = sc.<Integer>getOption(SO_LINGER); 109 if (linger < [all...] |
/openjdk7/jdk/src/solaris/native/sun/net/sdp/ |
H A D | SdpSupport.c | 105 struct linger linger; local 114 len = sizeof(linger); 115 if (getsockopt(fd, SOL_SOCKET, SO_LINGER, (void*)&linger, &len) == 0) 116 setsockopt(s, SOL_SOCKET, SO_LINGER, (char*)&linger, len);
|
/openjdk7/jdk/src/windows/native/java/net/ |
H A D | DualStackPlainSocketImpl.c | 370 struct linger linger; local 382 parg = (char *)&linger; 383 arglen = sizeof(linger); 385 linger.l_onoff = 1; 386 linger.l_linger = (unsigned short)value; 388 linger.l_onoff = 0; 389 linger.l_linger = 0; 411 struct linger linger; local [all...] |
H A D | TwoStacksPlainSocketImpl.c | 846 struct linger ling; 1012 struct linger ling;
|
H A D | net_util_md.c | 525 struct linger l;
|
/openjdk7/jdk/test/java/net/Socket/ |
H A D | GetLocalAddress.java | 40 int linger = 65546;
|
/openjdk7/jdk/src/solaris/native/sun/nio/ch/ |
H A D | Net.c | 337 struct linger linger; local 355 arg = (void *)&linger; 356 arglen = sizeof(linger); 378 return linger.l_onoff ? (jint)linger.l_linger : (jint)-1; 388 struct linger linger; local 407 parg = (void *)&linger; 408 arglen = sizeof(linger); [all...] |
H A D | SctpNet.c | 498 struct linger linger; local 509 parg = (void *)&linger; 510 arglen = sizeof(linger); 512 linger.l_onoff = 1; 513 linger.l_linger = arg; 515 linger.l_onoff = 0; 516 linger.l_linger = 0; 538 struct linger linger; local [all...] |
/openjdk7/jdk/src/windows/native/sun/nio/ch/ |
H A D | Net.c | 282 struct linger linger; local 287 arg = (char *)&linger; 288 arglen = sizeof(linger); 314 return linger.l_onoff ? linger.l_linger : -1; 323 struct linger linger; local 328 parg = (char *)&linger; 329 arglen = sizeof(linger); [all...] |
H A D | SocketDispatcher.c | 250 struct linger l;
|
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | BaseSSLSocketImpl.java | 352 * Assigns the socket's linger timeout. 355 public final void setSoLinger(boolean flag, int linger) argument 358 super.setSoLinger(flag, linger); 360 self.setSoLinger(flag, linger); 365 * Returns the socket's linger timeout.
|
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | SocketAdaptor.java | 337 public void setSoLinger(boolean on, int linger) throws SocketException { argument 339 linger = -1; 340 setIntOption(StandardSocketOptions.SO_LINGER, linger);
|
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | Socket.java | 967 * Enable/disable SO_LINGER with the specified linger time in seconds. 972 * @param on whether or not to linger on. 973 * @param linger how long to linger for, if on is true. 976 * @exception IllegalArgumentException if the linger value is negative. 980 public void setSoLinger(boolean on, int linger) throws SocketException { argument 986 if (linger < 0) { 989 if (linger > 65535) 990 linger = 65535; 991 getImpl().setOption(SocketOptions.SO_LINGER, new Integer(linger)); [all...] |
/openjdk7/jdk/src/windows/transport/socket/ |
H A D | socket_md.c | 221 struct linger l; 285 struct linger arg;
|
/openjdk7/jdk/src/solaris/transport/socket/ |
H A D | socket_md.c | 197 struct linger arg;
|
/openjdk7/jdk/src/solaris/native/java/net/ |
H A D | net_util_md.c | 1296 /* Workaround for Mac OS treating linger value as 1301 struct linger* to_cast = (struct linger*)result; 1347 struct linger *ling;
|
H A D | PlainSocketImpl.c | 898 struct linger ling; 994 struct linger ling;
|
/openjdk7/jdk/src/share/transport/shmem/ |
H A D | shmemBase.c | 360 closeStream(Stream *stream, jboolean linger) argument 378 * If linger requested then give the stream a few seconds to 381 if (linger) {
|