Метод | Описание | |
---|---|---|
__construct ( |
||
getPacket ( $buffer ) : synapse\network\protocol\spp\DataPacket | ||
getSynapse ( ) | ||
handlePacket ( $buffer ) | ||
isConnected ( ) : boolean | ||
process ( ) | ||
putPacket ( synapse\network\protocol\spp\DataPacket $pk ) | ||
reconnect ( ) | ||
registerPacket ( integer $id, synapse\network\protocol\spp\DataPacket $class ) | ||
shutdown ( ) |
Метод | Описание | |
---|---|---|
registerPackets ( ) |
public __construct ( |
||
$server | ||
$ip | string | |
$port | integer |
public getPacket ( $buffer ) : synapse\network\protocol\spp\DataPacket | ||
$buffer | ||
Результат | synapse\network\protocol\spp\DataPacket |
public putPacket ( synapse\network\protocol\spp\DataPacket $pk ) | ||
$pk | synapse\network\protocol\spp\DataPacket |
public registerPacket ( integer $id, synapse\network\protocol\spp\DataPacket $class ) | ||
$id | integer | 0-255 |
$class | synapse\network\protocol\spp\DataPacket |