From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18784 invoked by alias); 12 Apr 2006 22:31:15 -0000 Received: (qmail 18776 invoked by uid 22791); 12 Apr 2006 22:31:14 -0000 X-Spam-Check-By: sourceware.org Received: from conn.mc.mpls.visi.com (HELO conn.mc.mpls.visi.com) (208.42.156.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Apr 2006 22:31:11 +0000 Received: from rivatek.dnsalias.net (rrcs-67-52-40-201.west.biz.rr.com [67.52.40.201]) by conn.mc.mpls.visi.com (Postfix) with ESMTP id 7EEB58329 for ; Wed, 12 Apr 2006 17:31:09 -0500 (CDT) Received: by rivatek.dnsalias.net (Postfix, from userid 1000) id 06D68540D8; Wed, 12 Apr 2006 17:31:09 -0500 (CDT) To: ecos-discuss@ecos.sourceware.org From: Grant Edwards In-Reply-To: <172508928.20060413022233@kbkcc.ru> References: <1594633134.20060412215529@kbkcc.ru> <20060412183425.EF621540D7@rivatek.dnsalias.net> <172508928.20060413022233@kbkcc.ru> Date: Wed, 12 Apr 2006 22:31:00 -0000 Message-Id: <20060412223109.06D68540D8@rivatek.dnsalias.net> Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: Telnet server for eCos X-SW-Source: 2006-04/txt/msg00160.txt.bz2 In gmane.os.ecos.general, you wrote: > Wednesday, April 12, 2006, 10:34:25 PM, you wrote: > >>> Is it any telnet server for eCos? > > GE> Since RedBoot doesn't have a command-line shell, what do you > GE> propose to do with a telnet server? > > I need telnet server for diagnostic purpose. I would like to > use this server like uart for diagnostic communication for my > application (and use standard telnet client like putty on the > other side). If all you want to do is "print" to the telnet client, then that's trivial: just accept a TCP connection and start writing cr/lf terminated ASCII strings to it. IIRC, the client will probably default to line-at-a-time mode. If you want to read data from the telnet client, you'll need to get a little bit fancy, you can add some simple-minded option negotiation code like that found in RedBoot's net_io.c file. If you want to get a little more fancy, I'd probably switch on the suppress-goahead option and do character at a time instead of line-at-atime. -- Grant Edwards grante Yow! The entire CHINESE at WOMEN'S VOLLEYBALL TEAM all visi.com share ONE personality -- and have since BIRTH!! -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss