public interface XServer
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Try to establish a connection to this server
|
void |
disconnect()
Disconnect from this server
|
void |
flushCache()
Send cached packets = queue packets into connection
|
java.lang.String |
getHost()
Get the host/ip address
|
AbstractXServerManager |
getManager()
Get the Current Server Manager Object
|
java.lang.String |
getName()
Get the Server Name
|
java.lang.String |
getPassword()
Get the md5-encrypted password that is needed to login to this server
|
int |
getPort()
Get the port
|
long |
getReceivinglastSecondPackageCount()
Get the number of packages received in the last one second
|
long |
getReceivingRecordSecondPackageCount()
Get the record number of packages received in one second
|
long |
getSendinglastSecondPackageCount()
Get the number of packages sended in the last one second
|
long |
getSendingRecordSecondPackageCount()
Get the record number of packages sended in one second
|
XType |
getType()
Get the type of this server
|
boolean |
isConnected()
Returns the connection status
|
void |
ping(Ping ping)
Ping this server with a new Ping
|
boolean |
sendMessage(Message message)
Send a data Message to this server
|
void |
setConnection(Connection con)
Set the connection of this server
|
void |
setReloginConnection(Connection con)
Set the connection of this server on a rebouncing and successful Login Request (Dual Login, both servers needs to login on eachother)
|
void connect()
throws java.net.UnknownHostException,
java.io.IOException,
java.lang.InterruptedException,
NotInitializedException
java.net.UnknownHostExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionNotInitializedExceptionvoid setConnection(Connection con)
con - is the open connectionvoid setReloginConnection(Connection con)
con - is the open connectionboolean isConnected()
void disconnect()
java.lang.String getName()
java.lang.String getHost()
int getPort()
java.lang.String getPassword()
boolean sendMessage(Message message) throws java.io.IOException
message - java.io.IOExceptionvoid ping(Ping ping) throws java.lang.InterruptedException, java.io.IOException
ping - that is used to verify this pingjava.lang.InterruptedExceptionjava.io.IOExceptionvoid flushCache()
XType getType()
AbstractXServerManager getManager()
long getSendingRecordSecondPackageCount()
long getSendinglastSecondPackageCount()
long getReceivingRecordSecondPackageCount()
long getReceivinglastSecondPackageCount()