PHP Class DistributedServer, zys

Afficher le fichier Open project: qieangel2013/zys Class Usage Examples

Méthodes publiques

Свойство Type Description
$b_server_pool
$client_a
$client_pool
$instance

Méthodes publiques

Méthode Description
__construct ( )
getInstance ( )
onClose ( $server, $fd, $from_id ) 服务器断开连接
onConnect ( $serv, $fd )
onFinish ( $serv, $task_id, $data )
onManagerStop ( $serv )
onReceive ( $serv, $fd, $from_id, $data )
onStart ( $serv )
onTask ( $serv, $task_id, $from_id, $data )
onTimer ( $timer_id, $params = null )
onWorkerError ( $serv, $worker_id, $worker_pid, $exit_code )
onWorkerStart ( $serv, $worker_id )

Method Details

__construct() public méthode

public __construct ( )

getInstance() public static méthode

public static getInstance ( )

onClose() public méthode

服务器断开连接
public onClose ( $server, $fd, $from_id )

onConnect() public méthode

public onConnect ( $serv, $fd )

onFinish() public méthode

public onFinish ( $serv, $task_id, $data )

onManagerStop() public méthode

public onManagerStop ( $serv )

onReceive() public méthode

public onReceive ( $serv, $fd, $from_id, $data )

onStart() public méthode

public onStart ( $serv )

onTask() public méthode

public onTask ( $serv, $task_id, $from_id, $data )

onTimer() public méthode

public onTimer ( $timer_id, $params = null )

onWorkerError() public méthode

public onWorkerError ( $serv, $worker_id, $worker_pid, $exit_code )

onWorkerStart() public méthode

public onWorkerStart ( $serv, $worker_id )

Property Details

$b_server_pool public_oe property

public $b_server_pool

$client_a public_oe property

public $client_a

$client_pool public_oe property

public $client_pool

$instance public_oe static_oe property

public static $instance