[ale]simple inetd daemon

Cleveland Flowe flowe at innoverse.com
Tue Nov 20 17:25:55 EST 2001


Chris Fowler wrote:
> 
> I need to write a simple inetd daemon that will manage only rshd and telnetd.  I know a
> bit of how it works.  I need to know how 1 daemon can listen to multiple sockets.
<snip>
> I guess I could look at the basic inetd.c code but I would like to write from scratch.

man select(2) or poll(2).  You should pick up a copy of the book Unix
Network Programming by Stevens, there are other issues here besides
multiplexing connections.

> What is the tcp wait and no wait options?

Whether inetd should wait for the associated process to terminate before
listening for new connections.

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list