use of java.nio.channels.Pipe.SourceChannel in project robovm by robovm.
the class PipeTest method test_source.
/**
* @tests java.nio.channels.Pipe#source()
*/
public void test_source() throws IOException {
Pipe pipe = Pipe.open();
SourceChannel source = pipe.source();
assertTrue(source.isBlocking());
}
use of java.nio.channels.Pipe.SourceChannel in project robovm by robovm.
the class SSLEngineTest method prepareEngines.
void prepareEngines() throws IOException {
Pipe clientSendPipe = Pipe.open();
Pipe serverSendPipe = Pipe.open();
SinkChannel clientSink = clientSendPipe.sink();
SourceChannel serverSource = clientSendPipe.source();
SinkChannel serverSink = serverSendPipe.sink();
SourceChannel clientSource = serverSendPipe.source();
clientEngine = new HandshakeHandler(true, clientSource, clientSink);
serverEngine = new HandshakeHandler(false, serverSource, serverSink);
}
Aggregations