[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale]simple inetd daemon



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.  

Idea on telnet.

listen on port.
accept call
fork
setsid
setuid, setgid (to root)
dup the socket to 0 1 2
exec /bin/telnetd

I guess I could look at the basic inetd.c code but I would like to write from scratch.
What is the tcp wait and no wait options?

thanks,
Chris




---
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.