PHP Class MyQEE\Server\Register\Client

Datei anzeigen Open project: myqee/server Class Usage Examples

Public Properties

Property Type Description
$host MyQEE\Server\Clusters\Host 当前服务器对象

Protected Properties

Property Type Description
$rpc RPC | Client

Public Methods

Method Description
init ( $group, $id, $isTask = false ) 注册服务器
onConnect ( ) 连接上服务器回调
onServerAdd ( Host $host ) 添加一个HOST
onServerRemove ( $group, $id ) 移除一个HOST

Method Details

init() public static method

MyQEE\Server\RPC\Client::init();
public static init ( $group, $id, $isTask = false )

onConnect() public static method

连接上服务器回调
public static onConnect ( )

onServerAdd() public static method

添加一个HOST
public static onServerAdd ( Host $host )
$host MyQEE\Server\Clusters\Host

onServerRemove() public static method

移除一个HOST
public static onServerRemove ( $group, $id )

Property Details

$host public_oe static_oe property

当前服务器对象
public static Host,MyQEE\Server\Clusters $host
return MyQEE\Server\Clusters\Host

$rpc protected_oe static_oe property

protected static RPC,MyQEE\Server\Register|Client,MyQEE\Server\RPC $rpc
return RPC | Client