\Workerman\ProtocolsText

Text Protocol.

Summary

Methods
Properties
Constants
input()
encode()
decode()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

input()

input(string  $buffer, \Workerman\Connection\TcpConnection  $connection) : integer

Check the integrity of the package.

Parameters

string $buffer
\Workerman\Connection\TcpConnection $connection

Returns

integer

encode()

encode(string  $buffer) : string

Encode.

Parameters

string $buffer

Returns

string

decode()

decode(string  $buffer) : string

Decode.

Parameters

string $buffer

Returns

string