OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SocketChannel
(Results
1 - 25
of
87
) sorted by null
1
2
3
4
/libcore/ojluni/src/main/java/java/nio/channels/
SocketChannel.java
116
public abstract class
SocketChannel
127
protected
SocketChannel
(SelectorProvider provider) {
144
public static
SocketChannel
open() throws IOException {
184
public static
SocketChannel
open(SocketAddress remote)
187
SocketChannel
sc = open();
238
public abstract
SocketChannel
bind(SocketAddress local)
250
public abstract <T>
SocketChannel
setOption(SocketOption<T> name, T value)
271
public abstract
SocketChannel
shutdownInput() throws IOException;
292
public abstract
SocketChannel
shutdownOutput() throws IOException;
ServerSocketChannel.java
269
public abstract
SocketChannel
accept() throws IOException;
/libcore/luni/src/test/java/libcore/java/nio/channels/
SocketChannelTest.java
40
import java.nio.channels.
SocketChannel
;
52
SocketChannel
sc =
SocketChannel
.open(ss.getLocalSocketAddress())) {
75
SocketChannel
sc =
SocketChannel
.open();
100
/** Checks that closing a Socket's output stream also closes the Socket and
SocketChannel
. */
104
SocketChannel
sc =
SocketChannel
.open(ss.getLocalSocketAddress());
121
/** Checks that closing a Socket's input stream also closes the Socket and
SocketChannel
. */
125
SocketChannel
sc = SocketChannel.open(ss.getLocalSocketAddress())
[
all
...]
OldSocketChannelTest.java
32
import java.nio.channels.
SocketChannel
;
47
private
SocketChannel
channel1;
49
private
SocketChannel
channel2;
57
this.channel1 =
SocketChannel
.open();
58
this.channel2 =
SocketChannel
.open();
92
SocketChannel
channel =
96
channel =
SocketChannel
.open();
116
SocketChannel
testSChannel = MockSocketChannel.open();
181
this.channel1 =
SocketChannel
.open(localAddr1);
186
this.channel1 =
SocketChannel
.open(newTypeAddress)
[
all
...]
OldServerSocketChannelTest.java
25
import java.nio.channels.
SocketChannel
;
35
private
SocketChannel
clientChannel;
40
this.clientChannel =
SocketChannel
.open();
SelectorTest.java
28
import java.nio.channels.
SocketChannel
;
42
SocketChannel
sc =
SocketChannel
.open();
118
SocketChannel
sc =
SocketChannel
.open();
154
SocketChannel
server = null;
159
SocketChannel
sc =
SocketChannel
.open();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
MockSocketChannel.java
26
import java.nio.channels.
SocketChannel
;
30
class MockSocketChannel extends
SocketChannel
{
95
public
SocketChannel
shutdownOutput() throws IOException {
100
public
SocketChannel
shutdownInput() throws IOException {
105
public <T>
SocketChannel
setOption(SocketOption<T> name, T value)
111
public
SocketChannel
bind(SocketAddress local) throws IOException {
SelectorTest.java
29
import java.nio.channels.
SocketChannel
;
116
SocketChannel
sc =
SocketChannel
.open();
151
SocketChannel
sc =
SocketChannel
.open();
337
SocketChannel
sc =
SocketChannel
.open();
394
SocketChannel
sc =
SocketChannel
.open();
440
SocketChannel
channel = null
[
all
...]
MockServerSocketChannel.java
26
import java.nio.channels.
SocketChannel
;
42
public
SocketChannel
accept() throws IOException {
UnixSelectorTest.java
25
import java.nio.channels.
SocketChannel
;
76
SocketChannel
socketChannel
=
SocketChannel
.open();
77
socketChannel
.configureBlocking(false);
79
socketChannel
.register(sel2, SelectionKey.OP_WRITE);
80
boolean isConnected =
socketChannel
.connect(server.socket.getLocalSocketAddress());
82
socketChannel
.finishConnect();
85
assertEquals(true,
socketChannel
.isConnected());
88
assertEquals(true,
socketChannel
.isConnected())
[
all
...]
/prebuilts/jdk/jdk8/darwin-x86/sample/nio/server/
ChannelIO.java
47
* 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() {
B1.java
59
SocketChannel
sc = ssc.accept();
BN.java
60
SocketChannel
sc = ssc.accept();
BP.java
66
SocketChannel
sc = ssc.accept();
AcceptHandler.java
71
SocketChannel
sc = channel.accept();
Acceptor.java
68
SocketChannel
sc = ssc.accept();
/prebuilts/jdk/jdk8/linux-x86/sample/nio/server/
ChannelIO.java
47
* 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() {
B1.java
59
SocketChannel
sc = ssc.accept();
BN.java
60
SocketChannel
sc = ssc.accept();
BP.java
66
SocketChannel
sc = ssc.accept();
/libcore/ojluni/src/test/java/net/Socket/
ShutdownInput.java
40
import java.nio.channels.
SocketChannel
;
59
SocketChannel
s1 =
SocketChannel
.open(
61
SocketChannel
s2 = sc.accept() ) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
AbstractSelectableChannelTest.java
26
import java.nio.channels.
SocketChannel
;
112
SocketChannel
sc =
SocketChannel
.open();
126
SocketChannel
channel =
SocketChannel
.open();
211
SocketChannel
sc =
SocketChannel
.open();
235
SocketChannel
sc =
SocketChannel
.open();
257
SocketChannel
sc = SocketChannel.open()
[
all
...]
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
WorkerMain.java
27
import java.nio.channels.
SocketChannel
;
42
SocketChannel
channel =
SocketChannel
.open();
/libcore/ojluni/src/main/java/sun/nio/ch/
SelectorProviderImpl.java
59
public
SocketChannel
openSocketChannel() throws IOException {
/libcore/luni/src/test/java/libcore/java/io/
InterruptedStreamTest.java
35
import java.nio.channels.
SocketChannel
;
113
SocketChannel
clientSocketChannel =
SocketChannel
.open();
115
SocketChannel
server = serverSocketChannel.accept();
Completed in 5128 milliseconds
1
2
3
4