Class DCCppPacketizer

  • All Implemented Interfaces:
    DCCppInterface
    Direct Known Subclasses:
    DCCppOverTcpPacketizer, SerialDCCppPacketizer

    public class DCCppPacketizer
    extends DCCppTrafficController
    Converts Stream-based I/O to/from DCC++ messages. The "DCCppInterface" side sends/receives DCCppMessage objects. The connection to a DCCppPortController is via a pair of *Streams, which then carry sequences of characters for transmission.

    Messages come to this via the main GUI thread, and are forwarded back to listeners in that same thread. Reception and transmission are handled in dedicated threads by RcvHandler and XmtHandler objects. Those are internal classes defined here. The thread priorities are:

    • RcvHandler - at highest available priority
    • XmtHandler - down one, which is assumed to be above the GUI
    • (everything else)