This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: socketpair missing in 2.0?
- From: Andrew M Hoerter <amh at pobox dot com>
- To: "Gary D. Thomas" <gary dot thomas at mind dot be>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 25 Jul 2003 16:58:42 -0400 (EDT)
- Subject: Re: [ECOS] socketpair missing in 2.0?
On 25 Jul 2003, Gary D. Thomas wrote:
> However, it does bring up a point - this function is really designed for
> creating a socket/pipe which can be shared between two processes. Since
> eCos is not process oriented, why would you want to use it?
Briefly, to provide controlled shutdown in cases where a thread is blocked
on socket I/O. The thread does a poll/select on its "network" socket and
its "control" socket, and if data arrives on the control socket the thread
can abort.
> Also, why are you using a modified "net" template? There are much
> better ways to adapt/tune your configuration than changing common
> files like the template.
Perhaps my wording was unclear. I didn't change the template itself, I
created a new configuration file from the template and customized the
result.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss