| 限定符和类型 | 方法和说明 |
|---|---|
int |
getClientId()
Get the client id
|
String |
getClientToken()
Get the client token
|
String |
getHost()
Get the target host of the client
|
String |
getName()
Get the name of the client
|
int |
getPort()
Get the target port of the client
|
boolean |
isConnected()
Indicate this client has connected to a server
|
<T extends Packet> |
registerPackHandler(Class<T> c,
PackHandler<T> packHandler)
Register packet handler for server
|
void |
sendPacket(Packet packet)
Send the packet to the server
|
void sendPacket(Packet packet)
packet - the packet<T extends Packet> void registerPackHandler(Class<T> c, PackHandler<T> packHandler)
T - the packet typec - the packet classpackHandler - the packet handlerString getName()
String getHost()
int getPort()
boolean isConnected()
int getClientId()
String getClientToken()
Copyright © 2022. All rights reserved.