Searched refs:SocketChannel (Results 1 - 25 of 123) sorted by relevance

12345

/openjdk7/jdk/test/java/nio/channels/SocketChannel/
H A DBind.java34 SocketChannel sc1 = SocketChannel.open();
38 SocketChannel sc2 = SocketChannel.open();
H A DExceptionTranslation.java39 SocketChannel channel = SocketChannel.open();
47 SocketChannel chan1 = SocketChannel.open();
H A DOpenLeak.java26 * @summary SocketChannel.open(SocketAddress) leaks file descriptor if
34 import java.nio.channels.SocketChannel;
45 SocketChannel.open(isa);
H A DCloseAfterConnect.java27 import java.nio.channels.SocketChannel;
39 final SocketChannel sc = SocketChannel.open();
67 throw new RuntimeException("SocketChannel not connected");
H A DCloseRegisteredChannel.java26 @summary Test if the registered SocketChannel can be closed immediately
43 SocketChannel client = SocketChannel.open ();
45 SocketChannel slave = server.accept ();
H A DLocalAddress.java47 SocketChannel sc = SocketChannel.open();
58 sc = SocketChannel.open();
H A DStream.java41 SocketChannel sc = SocketChannel.open();
H A DShutdown.java40 SocketChannel peer = ssc.accept();
58 // Test SocketChannel shutdownXXX
59 SocketChannel sc;
60 sc = SocketChannel.open(remote);
70 sc = SocketChannel.open(remote);
H A DShortWrite.java54 final SocketChannel sc;
57 Reader(SocketChannel sc, int expectedSize) {
77 SocketChannel source,
78 SocketChannel sink,
114 try (SocketChannel source = SocketChannel.open(sa);
115 SocketChannel sink = ssc.accept())
H A DOutOfBand.java41 SocketChannel sc1 = null;
42 SocketChannel sc2 = null;
51 sc1 = SocketChannel.open(remote);
73 static void test1(SocketChannel client, SocketChannel server)
96 static void test2(final SocketChannel client, SocketChannel server)
133 static void test3(SocketChannel client, final SocketChannel server)
179 static void test4(SocketChannel s
[all...]
H A DConnectState.java69 abstract String go(SocketChannel sc) throws Exception;
76 static void check(SocketChannel sc, int state) throws Exception {
119 SocketChannel sc = SocketChannel.open();
174 String go(SocketChannel sc) throws Exception {
183 String go(SocketChannel sc) throws Exception {
191 String go(SocketChannel sc) throws Exception {
198 String go(SocketChannel sc) throws Exception {
208 String go(SocketChannel sc) throws Exception {
217 String go(SocketChannel s
[all...]
/openjdk7/jdk/src/share/classes/java/nio/channels/
H A DSocketChannel.java116 public abstract class SocketChannel class in inherits:AbstractSelectableChannel,ByteChannel,ScatteringByteChannel,GatheringByteChannel,NetworkChannel
124 protected SocketChannel(SelectorProvider provider) { method in class:SocketChannel
141 public static SocketChannel open() throws IOException {
179 public static SocketChannel open(SocketAddress remote)
182 SocketChannel sc = open();
229 public abstract SocketChannel bind(SocketAddress local)
241 public abstract <T> SocketChannel setOption(SocketOption<T> name, T value)
262 public abstract SocketChannel shutdownInput() throws IOException;
283 public abstract SocketChannel shutdownOutput() throws IOException;
/openjdk7/jdk/test/java/nio/channels/Selector/
H A DLotsOfUpdates.java30 SocketChannel sc = SocketChannel.open();
H A DHelperSlowToDie.java48 SocketChannel[] channels = new SocketChannel[CHANNELS_PER_THREAD];
50 SocketChannel sc = SocketChannel.open();
70 SocketChannel sc = SocketChannel.open();
H A DAlias.java56 SocketChannel sc = SocketChannel.open();
72 SocketChannel nextReady =
73 (SocketChannel)sk.channel();
85 static void read(SocketChannel sc) throws Exception {
H A DConnect.java56 SocketChannel sc = SocketChannel.open();
69 SocketChannel nextReady = (SocketChannel)sk.channel();
81 static void readAndClose(SocketChannel sc) throws Exception {
H A DReadAfterConnect.java42 SocketChannel sc = SocketChannel.open();
H A DSelectWrite.java44 SocketChannel sc = SocketChannel.open();
H A DConnectWrite.java49 SocketChannel sc = SocketChannel.open();
63 SocketChannel nextReady = (SocketChannel)sk.channel();
H A DSelectorLimit.java83 SocketChannel[] sca = new SocketChannel[N_KEYS];
85 SocketChannel sc = SocketChannel.open();
/openjdk7/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/
H A DStateTestService.java32 * SocketChannel checks that the socket is connected.
59 SocketChannel sc = SocketChannel.open(isa);
84 if (c instanceof SocketChannel) {
85 SocketChannel sc = (SocketChannel)c;
H A DLauncher.java68 * will be the SocketChannel returned by this method.
70 public static SocketChannel launchWithSocketChannel(String className, String options[], String args[]) throws IOException {
75 SocketChannel sc1 = SocketChannel.open(isa);
76 SocketChannel sc2 = ssc.accept();
83 public static SocketChannel launchWithSocketChannel(String className, String args[]) throws IOException {
87 public static SocketChannel launchWithSocketChannel(String className) throws IOException {
95 * can be established a SocketChannel, connected to the service, is returned.
97 public static SocketChannel launchWithServerSocketChannel(String className, String options[], String args[])
106 return SocketChannel
[all...]
/openjdk7/jdk/test/java/nio/channels/ServerSocketChannel/
H A DNonBlockingAccept.java56 SocketChannel sc = SocketChannel.open();
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DSecrets.java28 import java.nio.channels.SocketChannel;
48 public static SocketChannel newSocketChannel(FileDescriptor fd) {
/openjdk7/jdk/src/share/sample/nio/server/
H A DChannelIO.java47 * redirecting I/O calls to the proper SocketChannel call.
58 protected SocketChannel sc;
68 protected ChannelIO(SocketChannel sc, boolean blocking)
74 static ChannelIO getInstance(SocketChannel sc, boolean blocking)
82 SocketChannel getSocketChannel() {

Completed in 75 milliseconds

12345