PHP Classes

SuperSocket: Handle multiple TCP socket connections

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
StarStarStar 57%Total: 2,814 All time: 1,341 This week: 560Up
Version License PHP version Categories
supersocket 1.0GNU General Publi...4.0.7Networking
Description 

Author

This class can be used to implement TCP server handling connections to from multiple clients to multiple sockets.

It can listen to TCP connections coming from multiple IP addresses and multiple ports.

This starts a loop that handles socket events and calls optional callback functions that may be used by applications to implement TCP servers.

Innovation Award
PHP Programming Innovation award nominee
June 2008
Number 5


Prize: One copy of VS.PHP
PHP provides the socket extension that can be used to implement servers to listen and handle network connections.

Many servers written in PHP have been developed using the socket extension, but most of them only accept connections in a single IP address and single port.

This class provides a more flexible solution that can handle connections on multiple IP addresses and ports of the same machine.

Manuel Lemos
Picture of Debug
Name: Debug <contact>
Classes: 4 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.php Example Example
Plain text file supersocket.class.php Class SuperSocket Class

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:2,814
This week:0
All time:1,341
This week:560Up
User Ratings User Comments (3)
 All time
Utility:87%StarStarStarStarStar
Consistency:79%StarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1638
 
Running this script uses 100% of the cpu.
14 years ago (Neil Hearn)
67%StarStarStarStar
Would have like a better example.
15 years ago (Kenneth Ellis McCall)
60%StarStarStarStar
This class is a "ready to rock" socket programming source.
16 years ago (Taha Paksu)
67%StarStarStarStar