Socket Server

Package:
Socket Server
Summary:
Handle requests to network servers
Groups:
Networking, PHP 5
Author:
Aleksey V. Zapparov
Description:
This class can be used to handle requests to network servers.

It can create a socket to listen to connections to a given IP address and port.

The class accepts connections and sends an optional welcome message to the client.

It can also register an handler function that will be called when it receives data from a client. The return value of the handler function is sent as response to the client.


Powered by Gewgley