|
The Swoole\Server classIntroduction
Class synopsisSwoole\Server
class Swoole\Server
{
/* Methods */
public void addlistener(string
$host , int $port , string $socket_type )public bool addProcess(swoole_process
$process )public ReturnType after(int
$after_time_ms , callable $callback , string $param = ?)public bool bind(int
$fd , int $uid )public void clearTimer(int
$timer_id )void swoole_timer_clear(int
$timer_id )public bool close(int
$fd , bool $reset = ?)public bool confirm(int
$fd )public array connection_info(int
$fd , int $reactor_id = ?)public array connection_list(int
$start_fd , int $pagesize = ?)public void defer(callable
$callback )public void Swoole\Server\Port::__destruct()
public ReturnType Swoole\Server\Port::on(string
$event_name , callable $callback )public void Swoole\Server\Port::set(array
$settings )public bool exist(int
$fd )public void finish(string
$data )public array getClientInfo(int
$fd , int $reactor_id = ?, bool $ignore_error = ?)public array getClientList(int
$start_fd , int $pagesize = ?)public int getLastError()
public mixed heartbeat(bool
$if_close_connection )public bool listen(string
$host , int $port , string $socket_type )public void on(string
$event_name , callable $callback )public void pause(int
$fd )public void protect(int
$fd , bool $is_protected = ?)public bool reload()
public void resume(int
$fd )public bool send(int
$fd , string $data , int $reactor_id = ?)public bool sendfile(int
$fd , string $filename , int $offset = ?)public bool sendMessage(int
$worker_id , string $data )public bool sendto(
string $ip ,int $port ,string $data ,string $server_socket = ?) public bool sendwait(int
$fd , string $data )public ReturnType set(array
$settings )public void shutdown()
public void start()
public array stats()
public bool stop(int
$worker_id = ?)public mixed task(string
$data , int $dst_worker_id = ?, callable $callback = ?)public void taskwait(string
$data , float $timeout = ?, int $worker_id = ?)public void taskWaitMulti(array
$tasks , float $timeout_ms = ?)public void tick(int
}$interval_ms , callable $callback )
|