bug-inetutils
[Top][All Lists]
Advanced

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

Library proposal?


From: Jeff Bailey
Subject: Library proposal?
Date: Tue, 30 Oct 2001 07:16:24 -0800
User-agent: Mutt/1.2.5i

I'm wondering how hard something like this would be to do?

Write a library function called "server_start".  Depending on
parameters passed to it, it could either:

Just run, assuming that STDIN/STDOUT were attached correctly.
Run in daemon mode, and fork for every new connection.
Prefork a certain number of connections, and hand control off.
(riskier, but suitable for gopher, whois, http) spawn a new thread or pre/spawn 
threads.

The idea is that (file descriptors?  library routines?) would be
provided for input and output to make that transparent.

Tks,
Jeff Bailey

-- 
Abandon the search for truth; settle for a good fantasy.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]