interface IPseudoTcpNotify
Modifier and Type | Method and Description |
---|---|
void |
OnTcpClosed(PseudoTCPBase tcp,
IOException e)
Called when tcp enters closed state
|
void |
OnTcpOpen(PseudoTCPBase tcp)
Called when tcp enters opened state
|
void |
OnTcpReadable(PseudoTCPBase tcp)
Called when any data is available in read buffer
|
void |
OnTcpWriteable(PseudoTCPBase tcp)
Called when there is free space available in the send buffer
|
WriteResult |
TcpWritePacket(PseudoTCPBase tcp,
byte[] buffer,
int len)
Called when protocol requests packet transfer through the network.
|
void OnTcpOpen(PseudoTCPBase tcp)
tcp
- void OnTcpReadable(PseudoTCPBase tcp)
tcp
- void OnTcpWriteable(PseudoTCPBase tcp)
tcp
- void OnTcpClosed(PseudoTCPBase tcp, IOException e)
tcp
- e
- null means no errorWriteResult TcpWritePacket(PseudoTCPBase tcp, byte[] buffer, int len)
tcp
- buffer
- datalen
- data lengthWriteResult
description for more infoCopyright © 2018. All rights reserved.