Class DCCppOverTcpPacketizer

  • All Implemented Interfaces:
    DCCppInterface

    public class DCCppOverTcpPacketizer
    extends DCCppPacketizer
    Converts Stream-based I/O to/from DCC++ messages. The "DCCppInterface" side sends/receives DCCppMessage objects. The connection to a DCCppPortnetworkController 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)