inetd or super-server in D :-)

Lars Ivar Igesund larsivar at igesund.net
Wed Sep 17 00:34:09 PDT 2008


Robert wrote:

> I code super-server in D(simple implementation of something like "inetd"
> does). To select attempt of connection I use modules of class Selector. My
> problems: - how super-server can realize the port of connection request of
> the client, to provide proper request-handle procedure?
> -after "fork" do I just trigger "exec" with proper server as an argument
> of the function   ? -should I trigger everything via TCPD? (because simple
> version with exec(serverd,....) doesn't work properly on my ubuntu)? - to
> close all file descriptors I have problem with usage of NOFILE const or
> RLIMIT_NOFILE? how this thing should look in D? Thanks for any tips.

Can I suggest that you look at the io.selector package in Tango?

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d mailing list