Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-344

Telnet client: Support Listener Notification of Incoming Data

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 3.0
    • Telnet
    • None

    Description

      I am in the process of trying to implement a Java client for RFC 2217, which is the protocol for accessing serial ports over TCP. Unfortunately, the commons-net telnet client is insufficient for this relatively simple task.

      There are two missing features in the commons-net telnet client code, one of which is a show stopper (NET-343) and the other of which would be a "real nice to have". This issue documents the second problem:

      The API I am trying to support requires the ability to notify a listener that new incoming data is available. This would be trivial for me to do if only my library could somehow itself get a listener notification from the TelnetInputStream reader thread every time it reads new data. Unfortunately, there's no API provided for doing this, even though it would be trivial. So I have to implement a hack that requires a wrapper InputStream with yet another internal reader thread, etc. Bleh.

      I'm going to attempt to come up with a patch and will attach it here if successful.

      Attachments

        1. combined_NET-343_NET-344_NET-345_patch.txt
          12 kB
          Archie Cobbs
        2. NET-344_updated.txt
          8 kB
          Archie Cobbs
        3. patch2.txt
          7 kB
          Archie Cobbs

        Activity

          People

            Unassigned Unassigned
            archie172 Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: