This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: Re: telnet


On Mon, 21 Aug 2000, Bart Veer wrote:

> However, having a dedicated interpreter (Tcl, Python, hand-crafted,
> whatever) embedded into your application, accepting connections on a
> specific socket and responding to selected commands on that socket,
> would be a reasonable approach for many applications.

The standard networked HP printer "telnet" interface is a good example of
this kind of thing in practice.

I've seen other embedded os's support a simple shell with a few built-in
commands, that you can extend by creating an array of data structures
something like { const char *cmd; int (*func)(); } and calling an API
function to register them.  The shell was available on port 23 if you
configured for it.  Might be a neat thing to have in eCos.

Just my $0.02.

-Jamie


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