메소드 |
설명 |
|
__call ( $func, $params ) |
|
|
__construct ( $host, $port, $ssl = false ) |
|
|
addOption ( $specString, $description ) |
$opt->add( 'f|foo:' , 'option requires a value.' );
$opt->add( 'b|bar+' , 'option with multiple value.' );
$opt->add( 'z|zoo?' , 'option with optional value.' );
$opt->add( 'v|verbose' , 'verbose message.' );
$opt->add( 'd|debug' , 'debug message.' );
$opt->add( 'long' , 'long option name only.' );
$opt->add( 's' , 'short option name only.' ); |
|
autoCreate ( $host, $port, boolean $ssl = false ) : Server |
自动推断扩展支持
默认使用swoole扩展,其次是libevent,最后是select(支持windows) |
|
beforeReload ( callable $function ) |
|
|
beforeStop ( callable $function ) |
|
|
close ( $client_id ) |
|
|
connection_info ( $fd ) |
|
|
daemonize ( ) |
|
|
killProcessByName ( $name, integer $signo = 9 ) : string |
杀死所有进程 |
|
onManagerStop ( ) |
|
|
onMasterStart ( $serv ) |
|
|
onMasterStop ( $serv ) |
|
|
onWorkerStart ( $serv, $worker_id ) |
|
|
run ( $setting = [] ) |
|
|
send ( $client_id, $data ) |
|
|
setPidFile ( $pidFile ) |
设置PID文件 |
|
setProtocol ( $protocol ) |
|
|
shutdown ( ) |
|
|
start ( $startFunction ) |
显示命令行指令 |
|