PHP Classes

cls Socket: Generic socket based networking servers

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 45%Total: 3,687 All time: 901 This week: 224Up
Version License Categories
clssocket 1.0GNU General Publi...Networking


This package is meant to provide a means to build generic socket based networking servers.

Actually it is made of two classes: one for generic socket connection servers and one specialized in handling TCP socket connections.

The class lets developers specify callback functions that are invoked when the different socket server events happen like when a connection requested, a connection is accepted, a connection is closed, etc..

Innovation Award
PHP Programming Innovation award nominee
June 2004
Number 7

Prize: One copy of the PHP Anthology book set
Usually PHP is used to serve pages using a Web server. However, there are other types of networking applications on which PHP could also be used but the integration with a Web server is not convenient nor necessary.

Non Web server based PHP applications of interest include chat servers, mailing list processors and other types of networked application servers.

This class provides a means to simplify the construction of socket based networking servers using the PHP sockets extension.

It provides a way that lets any developer customize only the handling of events that interest their applications by the means of custom callback functions.

Manuel Lemos
Picture of Daniel Andres Marjos
  Performance   Level  
Name: Daniel Andres Marjos is available for providing paid consulting. Contact Daniel Andres Marjos .
Classes: 13 packages by
Country: Argentina Argentina
Age: 53
All time rank: 261 in Argentina Argentina
Week rank: 405 Down4 in Argentina Argentina Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Plain text file clsSocket.php Class Class file for client and server sockets classes
Accessible without login Plain text file test_daemon.php Example Sample script for sockets and daemon

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:901
This week:224Up
User Ratings User Comments (1)
 All time