SuperSocket: Handle multiple TCP socket connections

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (9)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 2,767 All time: 1,360 This week: 38Up
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
Age: 31
All time rank: 36444 in United States United States
Week rank: 523 Down60 in United States United States Down
Innovation award
Innovation award
Nominee: 4x

 

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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,767
This week:0
All time:1,360
This week:38Up
User Ratings User Comments (3)
 All time
Utility:95%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:60%StarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:1166
 
Running this script uses 100% of the cpu.
10 years ago (Neil Hearn)
67%StarStarStarStar
Would have like a better example.
11 years ago (Kenneth Ellis McCall)
60%StarStarStarStar
This class is a "ready to rock" socket programming source.
12 years ago (Taha Paksu)
67%StarStarStarStar
 

For more information send a message to info at phpclasses dot org.