PHP Class MyQEE\Server\Register\Client

Afficher le fichier Open project: myqee/server Class Usage Examples

Méthodes publiques

Свойство Type Description
$host MyQEE\Server\Clusters\Host 当前服务器对象

Protected Properties

Свойство Type Description
$rpc RPC | Client

Méthodes publiques

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

Method Details

init() public static méthode

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

onConnect() public static méthode

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

onServerAdd() public static méthode

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

onServerRemove() public static méthode

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

Property Details

$host public_oe static_oe property

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

$rpc protected_oe static_oe property

protected static RPC,MyQEE\Server\Register|Client,MyQEE\Server\RPC $rpc
Résultat RPC | Client