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
StarStarStar 57%Total: 2,813 All time: 1,340 This week: 82Up
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: 34
All time rank: 36544 in United States United States
Week rank: 550 Down57 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,340
This week:82Up
User Ratings User Comments (3)
 All time
Running this script uses 100% of the cpu.
13 years ago (Neil Hearn)
Would have like a better example.
14 years ago (Kenneth Ellis McCall)
This class is a "ready to rock" socket programming source.
15 years ago (Taha Paksu)