Re: Multi-threaded port listener

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

 



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@xxxxxxxxxxxxxxxx> 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






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux