Net_Server
Generic server package for creating daemons.
- Introduction — Introduction to Net_Server
- Пример — using Net_Server
- Class Summary Net_Server — PHP socket server base class
- Net_Server::create — create a new server
- Class Summary Net_Server_Driver — Base class for all drivers
- Net_Server_Driver::getLastSocketError — return string for last socket error
- Net_Server_Driver::setCallbackObject — register a callback object, that is used to handle all events
- Net_Server_Driver::setDebugMode — set debug mode
- Class Summary Net_Server_Driver_Fork — Forking server class.
- Net_Server_Driver_Fork::broadcastData — send data to all clients
- Net_Server_Driver_Fork::closeConnection — close the current connection
- Net_Server_Driver_Fork::getClientInfo — get current information about a client
- Net_Server_Driver_Fork::getClients — get current amount of clients
- Net_Server_Driver_Fork::isConnected — check, whether a client is still connected
- Net_Server_Driver_Fork::sendData — send data to a client
- Net_Server_Driver_Fork::serviceRequest — service the current request
- Net_Server_Driver_Fork::setMaxClients — set maximum amount of simultaneous connections
- Net_Server_Driver_Fork::shutDown — shutdown server
- Net_Server_Driver_Fork::start — start the server
- Class Summary Net_Server_Driver_Sequential — Sequential server class.
- Net_Server_Driver_Sequential::acceptConnection — accept a new connection
- Net_Server_Driver_Sequential::broadcastData — send data to all clients
- Net_Server_Driver_Sequential::closeConnection — close connection to a client
- Net_Server_Driver_Sequential::getClientInfo — get current information about a client
- Net_Server_Driver_Sequential::getClients — get current amount of clients
- Net_Server_Driver_Sequential::isConnected — check, whether a client is still connected
- Net_Server_Driver_Sequential::sendData — send data to a client
- Net_Server_Driver_Sequential::setMaxClients — set maximum amount of simultaneous connections
- Net_Server_Driver_Sequential::shutDown — shutdown server
- Net_Server_Driver_Sequential::start — start the server
- Class Summary Net_Server_Handler — Base class for all handlers
- Net_Server_Handler::onClose — onClose handler
- Net_Server_Handler::onConnect — onConnect handler
- Net_Server_Handler::onConnectionRefused — onConnectionRefused handler
- Net_Server_Handler::onIdle — onIdle handler
- Net_Server_Handler::onReceiveData — onReceiveData handler
- Net_Server_Handler::onShutdown — onShutdown handler
- Net_Server_Handler::onStart — onStart handler
- Net_Server_Handler::setServerReference — set a reference to the server object
- Package Net_Server Constants — Constants defined in and used by Net_Server