Home
last modified time | relevance | path

Searched refs:SocketChannel (Results 1 – 25 of 42) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java40 import java.nio.channels.SocketChannel;
52 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress())) { in test_read_intoReadOnlyByteArrays()
75 SocketChannel sc = SocketChannel.open(); in test_56684()
104 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress()); in test_channelSocketOutputStreamClosureState()
125 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress()); in test_channelSocketInputStreamClosureState()
144 SocketChannel sc = SocketChannel.open(); in test_open_initialState()
167 SocketChannel sc = SocketChannel.open(); in test_bind_unresolvedAddress()
183 SocketChannel sc = SocketChannel.open(); in test_bind_socketStateSync()
211 SocketChannel sc = SocketChannel.open(); in test_bind_socketObjectCreationAfterBind()
238 SocketChannel sc = SocketChannel.open(); in test_connect_blocking()
[all …]
DOldSocketChannelTest.java32 import java.nio.channels.SocketChannel;
47 private SocketChannel channel1;
49 private SocketChannel channel2;
57 this.channel1 = SocketChannel.open(); in setUp()
58 this.channel2 = SocketChannel.open(); in setUp()
92 SocketChannel channel = in testConstructor()
96 channel = SocketChannel.open(); in testConstructor()
116 SocketChannel testSChannel = MockSocketChannel.open(); in testOpen()
181 this.channel1 = SocketChannel.open(localAddr1); in testOpenSocketAddress()
186 this.channel1 = SocketChannel.open(newTypeAddress); in testOpenSocketAddress()
[all …]
DSelectorTest.java28 import java.nio.channels.SocketChannel;
42 SocketChannel sc = SocketChannel.open(); in testNonBlockingConnect_immediate()
118 SocketChannel sc = SocketChannel.open(); in test_57456()
154 SocketChannel server = null; in test28318596()
159 SocketChannel sc = SocketChannel.open(); in test28318596()
DOldServerSocketChannelTest.java25 import java.nio.channels.SocketChannel;
35 private SocketChannel clientChannel;
40 this.clientChannel = SocketChannel.open(); in setUp()
DServerSocketChannelTest.java37 import java.nio.channels.SocketChannel;
146 SocketChannel client = channel.accept(); in call()
158 SocketChannel client; in clearAcceptQueue()
267 SocketChannel socketChannel = SocketChannel.open(address); in canConnect()
/libcore/ojluni/src/main/java/java/nio/channels/
DSocketChannel.java116 public abstract class SocketChannel class
127 protected SocketChannel(SelectorProvider provider) { in SocketChannel() method in SocketChannel
144 public static SocketChannel open() throws IOException { in open()
184 public static SocketChannel open(SocketAddress remote) in open()
187 SocketChannel sc = open(); in open()
238 public abstract SocketChannel bind(SocketAddress local) in bind()
250 public abstract <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption()
271 public abstract SocketChannel shutdownInput() throws IOException; in shutdownInput()
292 public abstract SocketChannel shutdownOutput() throws IOException; in shutdownOutput()
DServerSocketChannel.java269 public abstract SocketChannel accept() throws IOException; in accept()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectorTest.java29 import java.nio.channels.SocketChannel;
116 SocketChannel sc = SocketChannel.open(); in test_keys()
151 SocketChannel sc = SocketChannel.open(); in test_selectedKeys()
337 SocketChannel sc = SocketChannel.open();
394 SocketChannel sc = SocketChannel.open();
440 SocketChannel channel = null;
442 channel = SocketChannel.open();
469 SocketChannel sc = SocketChannel.open();
470 SocketChannel client = null;
503 SocketChannel sc = SocketChannel.open();
[all …]
DMockSocketChannel.java26 import java.nio.channels.SocketChannel;
30 class MockSocketChannel extends SocketChannel {
95 public SocketChannel shutdownOutput() throws IOException { in shutdownOutput()
100 public SocketChannel shutdownInput() throws IOException { in shutdownInput()
105 public <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption()
111 public SocketChannel bind(SocketAddress local) throws IOException { in bind()
DUnixSelectorTest.java25 import java.nio.channels.SocketChannel;
76 SocketChannel socketChannel = SocketChannel.open(); in testSelectorAcceptAndRead()
93 SocketChannel socketChannel2 = SocketChannel.open(); in testSelectUnConnectedChannel()
DSocketChannelTest.java42 import java.nio.channels.SocketChannel;
59 private SocketChannel channel1;
61 private SocketChannel channel2;
73 this.channel1 = SocketChannel.open(); in setUp()
74 this.channel2 = SocketChannel.open(); in setUp()
152 SocketChannel.open(null); in testOpenSocketAddress_Null()
211 SocketChannel sc = SocketChannel.open(); in test_getLocalSocketAddress_afterClose()
1456 this.channel1 = SocketChannel.open(); in testCFII_StatusAfterFinish()
1471 this.channel1 = SocketChannel.open(); in testCFII_StatusAfterFinish()
1479 this.channel1 = SocketChannel.open(); in testCFII_StatusAfterFinish()
[all …]
DMockServerSocketChannel.java26 import java.nio.channels.SocketChannel;
42 public SocketChannel accept() throws IOException { in accept()
DSinkChannelTest.java27 import java.nio.channels.SocketChannel;
468 SocketChannel sc = SocketChannel.open(); in test_socketChannel_read_close()
477 SocketChannel sock = ssc.accept(); in test_socketChannel_read_close()
493 SocketChannel sc = SocketChannel.open(); in test_socketChannel_read_write()
495 SocketChannel sock = ssc.accept(); in test_socketChannel_read_write()
DSelectionKeyTest.java26 import java.nio.channels.SocketChannel;
36 SocketChannel sc;
45 sc = SocketChannel.open(); in setUp()
DServerSocketChannelTest.java33 import java.nio.channels.SocketChannel;
50 private SocketChannel clientChannel;
55 this.clientChannel = SocketChannel.open(); in setUp()
524 SocketChannel channel;
528 public WriteChannelThread(SocketChannel channel, ByteBuffer buffer) { in WriteChannelThread()
685 SocketChannel client = sc.accept(); in test_accept_SOTIMEOUT()
775 SocketChannel myChannel = serverChannel.accept(); in test_socket_getLocalPort()
/libcore/ojluni/src/test/java/nio/channels/Selector/
DSelectAfterRead.java35 import java.nio.channels.SocketChannel;
47 SocketChannel sc = SocketChannel.open(server.address())) { in testSelectAfterRead()
66 SocketChannel sc = SocketChannel.open(server.address())) { in testSelectAfterRead()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectableChannelTest.java26 import java.nio.channels.SocketChannel;
112 SocketChannel sc = SocketChannel.open(); in test_register_LSelectorILObject()
126 SocketChannel channel = SocketChannel.open(); in test_register_LSelectorILObject()
211 SocketChannel sc = SocketChannel.open(); in test_register_LSelectorILObject_IllegalArgument()
235 SocketChannel sc = SocketChannel.open(); in test_keyfor_LSelector()
257 SocketChannel sc = SocketChannel.open(); in test_configureBlocking_Z_IllegalBlockingMode()
/libcore/ojluni/src/test/java/nio/channels/SelectionKey/
DAtomicUpdates.java42 import java.nio.channels.SocketChannel;
54 private SelectionKey keyFor(SocketChannel sc) { in keyFor()
100 assertTrue(key.channel() instanceof SocketChannel); in test()
169 try (SocketChannel sc = SocketChannel.open()) { in testDefaultImplementation()
179 try (SocketChannel sc = SocketChannel.open(); in testNioImplementation()
/libcore/ojluni/src/test/java/net/Socket/
DShutdownInput.java40 import java.nio.channels.SocketChannel;
59 SocketChannel s1 = SocketChannel.open( in main()
61 SocketChannel s2 = sc.accept() ) { in main()
/libcore/luni/src/test/java/libcore/java/io/
DInterruptedStreamTest.java35 import java.nio.channels.SocketChannel;
113 SocketChannel clientSocketChannel = SocketChannel.open(); in newSocketChannelPair()
115 SocketChannel server = serverSocketChannel.accept(); in newSocketChannelPair()
/libcore/ojluni/src/test/java/net/SocketOptions/
DMinimumRcvBufferSize.java51 SocketChannel channel1 = SocketChannel.open(); in testBufferSize()
/libcore/luni/src/test/java/libcore/java/net/
DConcurrentCloseTest.java32 import java.nio.channels.SocketChannel;
82 SocketChannel s = SocketChannel.open(); in test_connect_nonBlocking()
/libcore/ojluni/src/main/java/sun/nio/ch/
DServerSocketAdaptor.java100 SocketChannel sc = ssc.accept(); in accept()
108 SocketChannel sc; in accept()
DSelectorProviderImpl.java59 public SocketChannel openSocketChannel() throws IOException { in openSocketChannel()
DSocketChannelImpl.java48 import java.nio.channels.SocketChannel;
66 extends SocketChannel
205 public <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption()
609 public SocketChannel bind(SocketAddress local) throws IOException { in bind()
822 public SocketChannel shutdownInput() throws IOException { in shutdownInput()
839 public SocketChannel shutdownOutput() throws IOException { in shutdownOutput()

12