PHP Classes

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,809 All time: 1,343 This week: 177Up
Version License PHP version Categories
supersocket 1.0GNU General Publi...4.0.7Networking


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: 33
All time rank: 36444 in United States United States
Week rank: 703 Down69 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  
This week:0
All time:1,343
This week:177Up
User Ratings User Comments (3)
 All time
Running this script uses 100% of the cpu.
12 years ago (Neil Hearn)
Would have like a better example.
13 years ago (Kenneth Ellis McCall)
This class is a "ready to rock" socket programming source.
14 years ago (Taha Paksu)