PHP Class DistributedServer, zys

显示文件 Open project: qieangel2013/zys Class Usage Examples

Public Properties

Property Type Description
$b_server_pool
$client_a
$client_pool
$instance

Public Methods

Method 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 method

public __construct ( )

getInstance() public static method

public static getInstance ( )

onClose() public method

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

onConnect() public method

public onConnect ( $serv, $fd )

onFinish() public method

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

onManagerStop() public method

public onManagerStop ( $serv )

onReceive() public method

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

onStart() public method

public onStart ( $serv )

onTask() public method

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

onTimer() public method

public onTimer ( $timer_id, $params = null )

onWorkerError() public method

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

onWorkerStart() public method

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