PHP Classes

Socket handler: Generic TCP/IP client using sockets

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
StarStar 34%Total: 3,634 All time: 913 This week: 62Up
Version License Categories
sockethandler 1.0.0Free for non-comm...Networking, PHP 5
Description 

Author

This class can be used to implement TCP/IP clients using socket connections.

It can establish persistent and non-persistent connections to a server with a given IP address and port. The connection timeout period is configurable.

It can send and receive data from the server. The server response can be retrieved line by line or in data chunks of variable size.

The class can verify whether the connection is still valid before attempting to retrieve the server response.

Picture of Tom Reitsma
Name: Tom Reitsma <contact>
Classes: 7 packages by
Country: The Netherlands The Netherlands
Age: 36
All time rank: 1685 in The Netherlands The Netherlands
Week rank: 215 Down4 in The Netherlands The Netherlands Up

  Files folder image Files (2)  
File Role Description
Plain text file socket.class.php Class Main class file
Accessible without login Plain text file socket.example.php Example Example usage

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  
 0%
Total:3,634
This week:0
All time:913
This week:62Up
User Ratings User Comments (1)
 All time
Utility:50%StarStarStar
Consistency:50%StarStarStar
Documentation:-
Examples:40%StarStarStar
Tests:-
Videos:-
Overall:34%StarStar
Rank:4207