[ale]simple inetd daemon
Tommie M. Jones
tj at atlantageek.com
Tue Nov 20 16:36:45 EST 2001
SIGIO might be what you need. You can configure this signal to happen
when data appears on a set of sockets.
http://www.atlantageek.com
Get inside Atlanta's Tech scene
On Tue, 20 Nov 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.
>
> 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.
>
>
---
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