Properties

$application

$application : 

Type

$instance

$instance : 

Type

$c_client_pool

$c_client_pool : 

Type

$b_client_pool

$b_client_pool : 

Type

$table

$table : 

Type

$cur_address

$cur_address : 

Type

$del_server

$del_server : 

Type

Methods

__construct()

__construct() 

addServerClient()

addServerClient(  $address) 

Parameters

$address

onConnect()

onConnect(  $serv) 

Parameters

$serv

onReceive()

onReceive(  $client,   $data) 

Parameters

$client
$data

onTask()

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

Parameters

$serv
$task_id
$from_id
$data

onFinish()

onFinish(  $serv,   $task_id,   $data) 

Parameters

$serv
$task_id
$data

onClose()

onClose(  $client) 

服务器断开连接

Parameters

$client

onError()

onError(  $client) 

服务器连接失败

Parameters

$client

getserlist()

getserlist(  $keyname = 'Distributed') 

Parameters

$keyname

appendserlist()

appendserlist(  $data,   $score,   $keyname = 'Distributed') 

Parameters

$data
$score
$keyname

removeuser()

removeuser(  $data,   $keyname = 'Distributed') 

Parameters

$data
$keyname

setkey()

setkey(  $data,   $keyname = 'errser') 

Parameters

$data
$keyname

getkey()

getkey(  $keyname = 'errser') 

Parameters

$keyname

delkey()

delkey(  $keyname = 'errser') 

Parameters

$keyname

geterrlist()

geterrlist(  $data) 

Parameters

$data

getInstance()

getInstance()