Property | Type | Description | |
---|---|---|---|
$_config | |||
$_ip | |||
$_port | |||
$_server |
Method | Description | |
---|---|---|
__construct ( $ip = "0.0.0.0", $port = 9569, $config = [] ) | ||
discovery ( array $config ) | server report | |
onPacket ( swoole_server $server, $data, $client_info ) | ||
start ( ) |
public onPacket ( swoole_server $server, $data, $client_info ) | ||
$server | swoole_server |