From: Grant Edwards <grante@visi.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Re: Telnet server for eCos
Date: Wed, 12 Apr 2006 22:31:00 -0000 [thread overview]
Message-ID: <20060412223109.06D68540D8@rivatek.dnsalias.net> (raw)
In-Reply-To: <172508928.20060413022233@kbkcc.ru>
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
prev parent reply other threads:[~2006-04-12 22:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-12 17:55 [ECOS] " Evgeny Belyanco
2006-04-12 18:34 ` [ECOS] " Grant Edwards
2006-04-12 22:22 ` Evgeny Belyanco
2006-04-12 22:31 ` Grant Edwards [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060412223109.06D68540D8@rivatek.dnsalias.net \
--to=grante@visi.com \
--cc=ecos-discuss@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).