public class TcpChannel2Connection extends Object
This class is for "plain" connections.
See SslChannel2Connection instead for SSL connections.
| Constructor and Description |
|---|
TcpChannel2Connection(int readBufferSize,
int writeBufferSize)
Create a TcpChannel to TcpConnection converter.
|
public TcpChannel2Connection(int readBufferSize,
int writeBufferSize)
readBufferSize - preferred buffer size for calling TcpChannel.read(java.nio.ByteBuffer).writeBufferSize - preferred buffer size for calling TcpChannel.write(java.nio.ByteBuffer...).public TcpConnection convert(TcpChannel channel)