PHP Classes

Socket Server: Handle requests to network servers

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,833 All time: 2,149 This week: 45Up
Version License PHP version Categories
socket-server 1.0.0GNU General Publi...5.0Networking, PHP 5
Description 

Author

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.

Picture of Aleksey V. Zapparov
Name: Aleksey V. Zapparov <contact>
Classes: 2 packages by
Country: Spain Spain

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.php Example Example of usage
Plain text file SocketServer.php Class Class itself

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,833
This week:0
All time:2,149
This week:45Up