1 | <?php |
||
22 | class ManagerServer extends TCP |
||
23 | { |
||
24 | /** |
||
25 | * @param swoole_server $server |
||
26 | * @param int $worker_id |
||
27 | */ |
||
28 | public function onWorkerStart(swoole_server $server, $worker_id) |
||
38 | |||
39 | /** |
||
40 | * @param swoole_server $server |
||
41 | * @param $fd |
||
42 | * @param $from_id |
||
43 | */ |
||
44 | public function doConnect(swoole_server $server, $fd, $from_id) |
||
48 | |||
49 | /** |
||
50 | * @param swoole_server $server |
||
51 | * @param $fd |
||
52 | * @param $data |
||
53 | * @param $from_id |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function doWork(swoole_server $server, $fd, $data, $from_id) |
||
77 | } |