Class XnTcpXNetPacketizer

  • All Implemented Interfaces:
    XNetInterface

    public class XnTcpXNetPacketizer
    extends XNetPacketizer
    This is an extension of the XNetPacketizer to handle the device specific requirements of the XnTcp.

    In particular, XnTcpXNetPacketizer counts the number of commands received.

    • Method Detail

      • loadChars

        protected void loadChars​(AbstractMRReply msg,
                                 java.io.DataInputStream istream)
                          throws java.io.IOException
        Get characters from the input source, and fill a message.

        Returns only when the message is complete.

        Only used in the Receive thread.

        Overrides:
        loadChars in class XNetTrafficController
        Parameters:
        msg - message to fill
        istream - character source.
        Throws:
        java.io.IOException - when presented by the input source.