This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Telnet server for eCos


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]