메소드 |
설명 |
|
__construct ( $ip = "0.0.0.0", $port = 9567, $httpport = 9566 ) |
|
|
__destruct ( ) |
|
|
configure ( array $config ) |
Configuration Server.必须在start之前执行 |
|
discovery ( array $group, array $report ) |
启动服务发现服务 |
|
doWork ( $param ) |
|
|
initServer ( $server ) |
|
|
initTask ( $server, $worker_id ) |
|
|
onFinish ( $serv, $task_id, $data ) |
task process finished |
|
onHttpFinished ( $serv, $task_id, $data, $response ) |
http task finished process |
|
onManagerStart ( swoole_server $serv ) |
application server first start |
|
onManagerStop ( swoole_server $serv ) |
|
|
onReceive ( swoole_server $serv, $fd, $from_id, $data ) |
tcp request process |
|
onRequest ( swoole_http_request $request, swoole_http_response $response ) |
http request process |
|
onStart ( swoole_server $serv ) |
application server first start |
|
onTask ( $serv, $task_id, $from_id, $data ) |
|
|
onWorkerError ( swoole_server $serv, $worker_id, $worker_pid, $exit_code ) |
|
|
onWorkerStart ( $server, $worker_id ) |
worker and task init |
|
start ( ) : void; |
Start Server. |
|