Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 3049 invoked from network); 19 Nov 2010 21:13:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 21:13:16 -0000 Received: (qmail 39767 invoked by uid 500); 19 Nov 2010 21:13:47 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 39685 invoked by uid 500); 19 Nov 2010 21:13:46 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 39677 invoked by uid 99); 19 Nov 2010 21:13:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 21:13:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 21:13:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAJLDPx8025107 for ; Fri, 19 Nov 2010 21:13:25 GMT Message-ID: <21158758.205631290201205844.JavaMail.jira@thor> Date: Fri, 19 Nov 2010 16:13:25 -0500 (EST) From: "Archie Cobbs (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (NET-344) Telnet client: Support Listener Notification of Incoming Data MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Telnet client: Support Listener Notification of Incoming Data ------------------------------------------------------------- Key: NET-344 URL: https://issues.apache.org/jira/browse/NET-344 Project: Commons Net Issue Type: New Feature Components: Telnet Affects Versions: 2.0 Reporter: Archie Cobbs I am in the process of trying to implement a Java client for [RFC 2217|http://tools.ietf.org/html/rfc2217], 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.