PHP Classes

Client and Server Socket: Implement TCP/IP client and servers

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 5,341 All time: 480 This week: 73Up
Version License PHP version Categories
net 0.9GNU General Publi...5.0Networking, PHP 5


This package can be use to implement generic TCP/IP clients and servers.

It can create client and server sockets for connections using TCP and UDP protocols under IPv4, IPv6 and UNIX domain.

The client class can establish connections to a given address and port, send and retrieve data.

The server class can accept connections to a given local port.

There are also classes for resolving host names, parsing URLs and establishing HTTP connections.

NOTE: This package is part of the WebMeshFramework and is not more maintained here. See more about this framework in:

Picture of Gustavo Gomes
Name: Gustavo Gomes <contact>
Classes: 3 packages by
Country: Brazil Brazil
Age: 39
All time rank: 16310 in Brazil Brazil
Week rank: 341 Down25 in Brazil Brazil Down

  Files folder image Files  
File Role Description
Files folder imagedoc (1 directory)
Files folder imageexception (2 files)
Plain text file AbstractSocket.php Class common informations used in client and server socket implementations
Plain text file HttpURLConnection.php Class http url connection
Plain text file InetAddress Class address representation
Plain text file InetSocketAddress.php Class socket address representation
Plain text file ServerSocket.php Class TCP server socket representation
Plain text file Socket.php Class client socket representation
Plain text file URL.php Class url wrapper

  Files folder image Files  /  doc  
File Role Description
Files folder imageexample (2 files)

  Files folder image Files  /  doc  /  example  
File Role Description
  Accessible without login Plain text file serversocket_test.php Example server socket example
  Accessible without login Plain text file socket_test.php Example client socket and url example

  Files folder image Files  /  exception  
File Role Description
  Plain text file SocketException.php Class socket exception tjhrows when errors occur
  Plain text file UnknownHostException.php Class unknown host exception throws mainly by InetAddress methods

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:480
This week:73Up
User Ratings User Comments (2)
 All time