\Workerman\ProtocolsFrame

Frame Protocol.

Summary

Methods
Properties
Constants
input()
decode()
encode()
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

decode()

decode(string  $buffer) : string

Decode.

Parameters

string $buffer

Returns

string

encode()

encode(string  $buffer) : string

Encode.

Parameters

string $buffer

Returns

string