Property | Type | Description | |
---|---|---|---|
$host | 当前服务器对象 |
Property | Type | Description | |
---|---|---|---|
$rpc |
Method | Description | |
---|---|---|
init ( $group, $id, $isTask = false ) | 注册服务器 | |
onConnect ( ) | 连接上服务器回调 | |
onServerAdd ( |
添加一个HOST | |
onServerRemove ( $group, $id ) | 移除一个HOST |
public static init ( $group, $id, $isTask = false ) |
public static onServerAdd ( |
||
$host |
public static Host,MyQEE\Server\Clusters $host | ||
return |