PHP Class Workerman\Protocols\Frame

Show file Open project: walkor/workerman

Public Methods

Method Description
decode ( string $buffer ) : string Decode.
encode ( string $buffer ) : string Encode.
input ( string $buffer, TcpConnection $connection ) : integer Check the integrity of the package.

Method Details

decode() public static method

Decode.
public static decode ( string $buffer ) : string
$buffer string
return string

encode() public static method

Encode.
public static encode ( string $buffer ) : string
$buffer string
return string

input() public static method

Check the integrity of the package.
public static input ( string $buffer, TcpConnection $connection ) : integer
$buffer string
$connection Workerman\Connection\TcpConnection
return integer