public class ClientTCPConnection extends ClientConnection
ClientConnection.AcceptCallback, ClientConnection.MessageCallbackaggregatedReceives, aggregatedSends, connectionTypeRDP, connectionTypeTCP, connectionTypeUDP, lock, logMessageContents, logoutState, packetAggregator, receivedMessagesAggregated, sentMessagesAggregated, unaggregatedReceives, unaggregatedSends| Constructor and Description |
|---|
ClientTCPConnection(ClientTCPMessageIO clientTCPMessageIO) |
ClientTCPConnection(ClientTCPMessageIO clientTCPMessageIO,
java.nio.channels.SocketChannel socketChannel,
ClientConnection.MessageCallback messageCallback) |
ClientTCPConnection(java.nio.channels.SocketChannel socketChannel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSend() |
boolean |
canSendInternal() |
void |
close() |
int |
connectionKind() |
void |
connectionReset() |
AgentInfo |
getAgentInfo() |
ClientConnection.MessageCallback |
getMessageCallback() |
protected void |
initializeFromSocketChannel(java.nio.channels.SocketChannel socketChannel) |
java.lang.String |
IPAndPort() |
boolean |
isOpen() |
void |
open(java.lang.String hostname,
int remotePort) |
void |
registerMessageCallback(ClientConnection.MessageCallback messageCallback) |
void |
send(AOByteBuffer buf) |
boolean |
sendIfPossible(AOByteBuffer buf) |
boolean |
sendInternal(AOByteBuffer buf) |
int |
sendMultibuf(java.util.List<AOByteBuffer> subMessages,
int currentSize) |
closeAggregator, getAssociation, getLock, getLogMessageContents, getLogoutState, isSaturated, setAssociation, setLogMessageContents, setLogoutState, toStringpublic ClientTCPConnection(ClientTCPMessageIO clientTCPMessageIO)
public ClientTCPConnection(java.nio.channels.SocketChannel socketChannel)
public ClientTCPConnection(ClientTCPMessageIO clientTCPMessageIO, java.nio.channels.SocketChannel socketChannel, ClientConnection.MessageCallback messageCallback)
protected void initializeFromSocketChannel(java.nio.channels.SocketChannel socketChannel)
public java.lang.String IPAndPort()
IPAndPort in class ClientConnectionpublic void registerMessageCallback(ClientConnection.MessageCallback messageCallback)
registerMessageCallback in class ClientConnectionpublic ClientConnection.MessageCallback getMessageCallback()
public void send(AOByteBuffer buf)
send in class ClientConnectionpublic boolean sendInternal(AOByteBuffer buf)
sendInternal in class ClientConnectionpublic boolean sendIfPossible(AOByteBuffer buf)
sendIfPossible in class ClientConnectionpublic int sendMultibuf(java.util.List<AOByteBuffer> subMessages, int currentSize)
sendMultibuf in class ClientConnectionpublic void open(java.lang.String hostname,
int remotePort)
open in class ClientConnectionpublic void connectionReset()
connectionReset in class ClientConnectionpublic void close()
close in class ClientConnectionpublic boolean isOpen()
isOpen in class ClientConnectionpublic boolean canSend()
canSend in class ClientConnectionpublic boolean canSendInternal()
canSendInternal in class ClientConnectionpublic int connectionKind()
connectionKind in class ClientConnectionpublic AgentInfo getAgentInfo()