PHP Classes

SocketServer: Server to handle TCP requests

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
Not enough user ratingsTotal: 983 All time: 3,697 This week: 64Up
Version License PHP version Categories
socketserver 1.7BSD License5.0Networking, PHP 5
Collaborate with this project 

Author

Sockets - github.com

Description

This class can be used to implement a server to handle TCP requests.

It can listen to connections to a given IP and port and call given callback functions upon certain types of events.

Currently it can call handler functions for the events of established connections, disconnections, and received data from the client.

Picture of Navarr Barnier
Name: Navarr Barnier <contact>
Classes: 1 package by
Country: United States United States

  Files folder image Files (17)  
File Role Description
Files folder image.github (1 directory)
Files folder imageexamples (2 files)
Files folder imagesrc (2 files, 1 directory)
Files folder imagetests (2 files)
Accessible without login Plain text file SocketServer.class.php Class Main Class
Plain text file composer.json Data Auxiliary data
Plain text file infection.json.dist Data Auxiliary data
Plain text file LICENSE Data Auxiliary data
Plain text file phpcs.xml.dist Data Auxiliary data
Plain text file phpstan.neon Data Auxiliary data
Plain text file phpunit.xml.dist Data Auxiliary data
Plain text file README.md Class Class source
Accessible without login Plain text file reverse_it.php Example Example Plain Text Server

  Files folder image Files (17)  /  .github  
File Role Description
Files folder imageworkflows (1 file)

  Files folder image Files (17)  /  .github  /  workflows  
File Role Description
  Plain text file commit.yml Data Auxiliary data

  Files folder image Files (17)  /  examples  
File Role Description
  Plain text file EchoServer.php Example Example script
  Plain text file WebServer.php Example Example script

  Files folder image Files (17)  /  src  
File Role Description
Files folder imageException (1 file)
  Plain text file Server.php Class Class source
  Plain text file Socket.php Class Class source

  Files folder image Files (17)  /  src  /  Exception  
File Role Description
  Plain text file SocketException.php Class Class source

  Files folder image Files (17)  /  tests  
File Role Description
  Plain text file ServerTest.php Test Unit test script
  Plain text file SocketTest.php Test Unit test script

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  
 88%
Total:983
This week:0
All time:3,697
This week:64Up