OpenGSQ PHP

TcpClient
in package

Class TcpClient

This class provides a method to communicate with a server using TCP protocol.

Table of Contents

Methods

communicate()  : string
Sends data to a server and returns the response.

Methods

communicate()

Sends data to a server and returns the response.

public static communicate(ProtocolBase $protocolBase, string $data) : string
Parameters
$protocolBase : ProtocolBase

The protocol information.

$data : string

The data to send.

Tags
throws
Exception

If the operation fails or times out.

Return values
string

The server's response.


        
On this page

Search results