Re: Multi-threaded port listener
| From: | Edwin Barrios | Date: | Fri, 28 Apr 2006 22:40:31 +0000 |
| Subject: | Re: Multi-threaded port listener | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235046@lists.php.net to get a copy of this message | ||
Hi.
If you want a separate script execution, you can use inetd o xinetd to
listen for you that port.
When inetd got a connection execute your php script, one execution by
connection.
I think that it is more usefull to create your own responser server with
php using forks !. But using inetd has the advantage that you can use
tcpwrappers.
On 4/28/06, René Fournier <m5@renefournier.com> wrote:
Anyone find any good tutorials, code samples, etc. on such a thing? Basically, I want to write server (in PHP) that listeners on a particular port, and spins off a thread/process (essentially, execute a separate script) for each incoming connection. There won't be a lot of data to process, but there will be many simultaneous connections— upwards of 1000s of connections (each spun off as seperate threads). ...Rene