Undocumented Socket functions?
| From: | Rog | Date: | Wed, 14 Feb 2001 16:58:18 +0000 |
| Subject: | Undocumented Socket functions? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39673@lists.php.net to get a copy of this message | ||
Can anyone here decipher for me some of the undocumented Socket functions in PHP4?
For instance, how do I use select() to multiplex multiple connections?
With the functions that are documented, there is a nice example of a simple echoing TCP server, but it only accepts a single connection which has limited usage. Can anyone come up with an example to expand that to multiple connections.
The suggestions in the manual to read man pages & C tutorials has helped me wrap my head around the multiplexing loop concept, but I still can't decipher how to actually create this using the functions available (mostly because I don't program in C).
Visit the Gates Motel webgame:
http://www.gameslate.com/gatesmotel/