Package 

Interface PseudoTcpNotify

  • All Implemented Interfaces:

    
    public interface PseudoTcpNotify
    
                        

    Notification of tcp events. Is implemented by PseudoTcpSocketImpl to expose stream functionality.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • 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 closed
        e - 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 occurred
        buffer - the data that was written
        len - data length