Implement TCP socket server scripts
||By Joshua hatfield
||Update 1.0.1: 2005-07-22 (not posted on phpclesses.org until 2005-08-07 due to technical difficulties)
Added event SOCKET_EVENT_TICKERS
* Fires event after pushing buffer per channel.
Update to floSocket($address = false, $port = "9999", $tick = 250000)
* Added $tick paramater. Specifies how long to wait between buffer checks.
Moved sleeping to inside the loop where it is actually useful.
Default tick time changed to .25 seconds from 100 miliseconds or 0 if you
count the fact that the sleeping wasn't actually in the loop.
||11 years ago