[ale]simple inetd daemon
Russell Hogg
russellh at x-soft.com
Tue Nov 20 16:40:00 EST 2001
There some PERL modules which could supply that pretty easily, No doubt
there's someone better qualified to comment on them than me though.
-Russ
_________________________________________
russellh at x-soft.com
-----Original Message-----
From: Tommie M. Jones [mailto:tj at atlantageek.com]
To: ale at ale.org
Sent: Tuesday, November 20, 2001 4:37 PM
To: Chris Fowler
Cc: Ale
Subject: Re: [ale]simple inetd daemon
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.
---
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