private static class AbstractTcpListener.ChannelDesc extends Object
Modifier and Type | Field and Description |
---|---|
(package private) ByteBuffer |
buffer
The buffer which stores the data so far read from the channel.
|
SocketChannel |
channel
The actual SocketChannel.
|
(package private) boolean |
checkedForSSLHandshake
Whether we had checked for initial "pseudo" SSL handshake.
|
(package private) long |
lastActive
The time the channel was last found to be active.
|
(package private) int |
length
The value of the RFC4571 "length" field read from the channel, or
-1 if it hasn't been read (yet).
|
(package private) byte[] |
preBuffered
Buffer to use if we had read some data in advance and want to process
it after next read, used when we are checking for "pseudo" SSL and
we haven't found some, but had read data to check for it.
|
Constructor and Description |
---|
ChannelDesc(SocketChannel channel)
Initializes a new ChannelDesc with the given channel.
|
public final SocketChannel channel
long lastActive
ByteBuffer buffer
boolean checkedForSSLHandshake
byte[] preBuffered
int length
public ChannelDesc(SocketChannel channel)
channel
- the channel.Copyright © 2018. All rights reserved.