PHP Classes
elePHPant
Icontem

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 (8)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2008-06-02 (9 years ago) RSS 2.0 feedStarStarStarStar 62%Total: 2,670 All time: 1,390 This week: 635Up
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
Name: Debug <contact>
Classes: 4 packages by
Country: United States United States
Age: 27
All time rank: 36543 in United States United States
Week rank: 990 Down97 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,670
This week:0
All time:1,390
This week:635Up
User Ratings User Comments (3)
 All time
Utility:95%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:60%StarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:1085
 
Running this script uses 100% of the cpu.
7 years ago (Neil Hearn)
67%StarStarStarStar
Would have like a better example.
8 years ago (Kenneth Ellis McCall)
60%StarStarStarStar
This class is a "ready to rock" socket programming source.
8 years ago (Taha Paksu)
67%StarStarStarStar