-
- All Implemented Interfaces:
public interface PseudoTcpNotifyNotification of tcp events. Is implemented by PseudoTcpSocketImpl to expose stream functionality.
-
-
Method Summary
Modifier and Type Method Description abstract voidonTcpOpen(PseudoTCPBase tcp)Called when TCP enters opened state abstract voidonTcpReadable(PseudoTCPBase tcp)Called when any data is available in read buffer abstract voidonTcpWriteable(PseudoTCPBase tcp)Called when there is free space available in the send buffer abstract voidonTcpClosed(PseudoTCPBase tcp, IOException e)Called when tcp enters closed state abstract WriteResulttcpWritePacket(PseudoTCPBase tcp, Array<byte> buffer, int len)Called when protocol requests packet transfer through the network. -
-
Method Detail
-
onTcpOpen
abstract void onTcpOpen(PseudoTCPBase tcp)
Called when TCP enters opened state
- Parameters:
tcp- the socket that was opened
-
onTcpReadable
abstract void onTcpReadable(PseudoTCPBase tcp)
Called when any data is available in read buffer
- Parameters:
tcp- the socket that became readable
-
onTcpWriteable
abstract void onTcpWriteable(PseudoTCPBase tcp)
Called when there is free space available in the send buffer
- Parameters:
tcp- the socket that became writable
-
onTcpClosed
abstract void onTcpClosed(PseudoTCPBase tcp, IOException e)
Called when tcp enters closed state
- Parameters:
tcp- the socket that was closede- null means no error
-
tcpWritePacket
abstract WriteResult tcpWritePacket(PseudoTCPBase tcp, Array<byte> buffer, int len)
Called when protocol requests packet transfer through the network.
- Parameters:
tcp- the socket on which the write occurredbuffer- the data that was writtenlen- data length
-
-
-
-