123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356 |
- <?php
- namespace Swoole;
- class Server
- {
- private $onStart;
- private $onShutdown;
- private $onWorkerStart;
- private $onWorkerStop;
- private $onBeforeReload;
- private $onAfterReload;
- private $onWorkerExit;
- private $onWorkerError;
- private $onTask;
- private $onFinish;
- private $onManagerStart;
- private $onManagerStop;
- private $onPipeMessage;
- public $setting;
- public $connections;
- public $host = '';
- public $port = 0;
- public $type = 0;
- public $mode = 0;
- public $ports;
- public $master_pid = 0;
- public $manager_pid = 0;
- public $worker_id = -1;
- public $taskworker = false;
- public $worker_pid = 0;
- public $stats_timer;
- public function __construct($host, $port = null, $mode = null, $sock_type = null)
- {
- }
- public function __destruct()
- {
- }
- /**
- * @return mixed
- */
- public function listen($host, $port, $sock_type)
- {
- }
- /**
- * @return mixed
- */
- public function addlistener($host, $port, $sock_type)
- {
- }
- /**
- * @return mixed
- */
- public function on($event_name, callable $callback)
- {
- }
- /**
- * @return mixed
- */
- public function getCallback($event_name)
- {
- }
- /**
- * @return mixed
- */
- public function set(array $settings)
- {
- }
- /**
- * @return mixed
- */
- public function start()
- {
- }
- /**
- * @return mixed
- */
- public function send($fd, $send_data, $server_socket = null)
- {
- }
- /**
- * @return mixed
- */
- public function sendto($ip, $port, $send_data, $server_socket = null)
- {
- }
- /**
- * @return mixed
- */
- public function sendwait($conn_fd, $send_data)
- {
- }
- /**
- * @return mixed
- */
- public function exists($fd)
- {
- }
- /**
- * @return mixed
- */
- public function exist($fd)
- {
- }
- /**
- * @return mixed
- */
- public function protect($fd, $is_protected = null)
- {
- }
- /**
- * @return mixed
- */
- public function sendfile($conn_fd, $filename, $offset = null, $length = null)
- {
- }
- /**
- * @return mixed
- */
- public function close($fd, $reset = null)
- {
- }
- /**
- * @return mixed
- */
- public function confirm($fd)
- {
- }
- /**
- * @return mixed
- */
- public function pause($fd)
- {
- }
- /**
- * @return mixed
- */
- public function resume($fd)
- {
- }
- /**
- * @return mixed
- */
- public function task($data, $worker_id = null, ?callable $finish_callback = null)
- {
- }
- /**
- * @return mixed
- */
- public function taskwait($data, $timeout = null, $worker_id = null)
- {
- }
- /**
- * @return mixed
- */
- public function taskWaitMulti(array $tasks, $timeout = null)
- {
- }
- /**
- * @return mixed
- */
- public function taskCo(array $tasks, $timeout = null)
- {
- }
- /**
- * @return mixed
- */
- public function finish($data)
- {
- }
- /**
- * @return mixed
- */
- public function reload()
- {
- }
- /**
- * @return mixed
- */
- public function shutdown()
- {
- }
- /**
- * @return mixed
- */
- public function stop($worker_id = null)
- {
- }
- /**
- * @return mixed
- */
- public function getLastError()
- {
- }
- /**
- * @return mixed
- */
- public function heartbeat($reactor_id)
- {
- }
- /**
- * @return mixed
- */
- public function getClientInfo($fd, $reactor_id = null)
- {
- }
- /**
- * @return mixed
- */
- public function getClientList($start_fd, $find_count = null)
- {
- }
- /**
- * @return mixed
- */
- public function getWorkerId()
- {
- }
- /**
- * @return mixed
- */
- public function getWorkerPid()
- {
- }
- /**
- * @return mixed
- */
- public function getWorkerStatus($worker_id = null)
- {
- }
- /**
- * @return mixed
- */
- public function getManagerPid()
- {
- }
- /**
- * @return mixed
- */
- public function getMasterPid()
- {
- }
- /**
- * @return mixed
- */
- public function connection_info($fd, $reactor_id = null)
- {
- }
- /**
- * @return mixed
- */
- public function connection_list($start_fd, $find_count = null)
- {
- }
- /**
- * @return mixed
- */
- public function sendMessage($message, $dst_worker_id)
- {
- }
- /**
- * @return mixed
- */
- public function addProcess(\swoole_process $process)
- {
- }
- /**
- * @return mixed
- */
- public function stats()
- {
- }
- /**
- * @return mixed
- */
- public function getSocket($port = null)
- {
- }
- /**
- * @return mixed
- */
- public function bind($fd, $uid)
- {
- }
- }
|