Searched refs:SO_KEEPALIVE (Results 1 - 13 of 13) sorted by relevance

/openjdk7/jdk/test/java/nio/channels/SocketChannel/
H A DSocketOptionTests.java53 SO_KEEPALIVE, SO_REUSEADDR, SO_LINGER, TCP_NODELAY);
63 checkOption(sc, SO_KEEPALIVE, false);
67 sc.setOption(SO_KEEPALIVE, true);
68 checkOption(sc, SO_KEEPALIVE, true);
69 sc.setOption(SO_KEEPALIVE, false);
70 checkOption(sc, SO_KEEPALIVE, false);
102 sc.setOption(SO_KEEPALIVE, true);
103 checkOption(sc, SO_KEEPALIVE, true);
104 sc.setOption(SO_KEEPALIVE, false);
105 checkOption(sc, SO_KEEPALIVE, fals
[all...]
/openjdk7/jdk/src/share/classes/java/net/
H A DSocketOptions.java317 public final static int SO_KEEPALIVE = 0x0008; field in interface:SocketOptions
H A DStandardSocketOptions.java71 * whether the option is enabled or disabled. When the {@code SO_KEEPALIVE}
84 public static final SocketOption<Boolean> SO_KEEPALIVE = field in class:StandardSocketOptions
85 new StdSocketOption<Boolean>("SO_KEEPALIVE", Boolean.class);
H A DAbstractPlainSocketImpl.java251 case SO_KEEPALIVE:
253 throw new SocketException("bad parameter for SO_KEEPALIVE");
315 case SO_KEEPALIVE:
H A DSocket.java1253 * Enable/disable SO_KEEPALIVE.
1264 getImpl().setOption(SocketOptions.SO_KEEPALIVE, Boolean.valueOf(on));
1268 * Tests if SO_KEEPALIVE is enabled.
1270 * @return a <code>boolean</code> indicating whether or not SO_KEEPALIVE is enabled.
1279 return ((Boolean) getImpl().getOption(SocketOptions.SO_KEEPALIVE)).booleanValue();
/openjdk7/jdk/src/share/native/sun/nio/ch/
H A DgenSocketOptionRegistry.c100 emit_unspec("StandardSocketOptions.SO_KEEPALIVE", SOL_SOCKET, SO_KEEPALIVE);
/openjdk7/jdk/src/windows/classes/java/net/
H A DDualStackPlainSocketImpl.java196 case SO_KEEPALIVE :
236 case SO_KEEPALIVE :
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DSocketAdaptor.java397 setBooleanOption(StandardSocketOptions.SO_KEEPALIVE, on);
401 return getBooleanOption(StandardSocketOptions.SO_KEEPALIVE);
H A DAsynchronousSocketChannelImpl.java504 set.add(StandardSocketOptions.SO_KEEPALIVE);
H A DSocketChannelImpl.java233 set.add(StandardSocketOptions.SO_KEEPALIVE);
/openjdk7/jdk/test/java/nio/channels/AsynchronousSocketChannel/
H A DBasic.java151 if (ch.getOption(SO_KEEPALIVE))
152 throw new RuntimeException("Default of SO_KEEPALIVE should be 'false'");
157 if (!ch.setOption(SO_KEEPALIVE, true).getOption(SO_KEEPALIVE))
158 throw new RuntimeException("SO_KEEPALIVE did not change");
160 throw new RuntimeException("SO_KEEPALIVE did not change");
/openjdk7/jdk/src/solaris/native/java/net/
H A Dnet_util_md.c1039 { java_net_SocketOptions_SO_KEEPALIVE, SOL_SOCKET, SO_KEEPALIVE },
/openjdk7/jdk/src/windows/native/java/net/
H A Dnet_util_md.c348 { java_net_SocketOptions_SO_KEEPALIVE, SOL_SOCKET, SO_KEEPALIVE },

Completed in 55 milliseconds