Class ServerModule
java.lang.Object
io.github.michael_bailey.client.managers.NetworkModules.ServerModule
public class ServerModule
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ServerModule(Account account)
ServerModule(Account account, IServerModuleDelegate delegate)
-
Method Summary
Modifier and Type Method Description boolean
connect(Server serverDetails)
boolean
disconnect()
Server
getServerDetails(java.lang.String ipAddress)
getServerDetails this is the primary way of adding getting new Server instances gets the status of the server in question and builds a server object from that.boolean
isConnected()
-
Constructor Details
-
Method Details
-
getServerDetails
getServerDetails this is the primary way of adding getting new Server instances gets the status of the server in question and builds a server object from that.- Parameters:
ipAddress
- the address of the server- Returns:
- new Server instance if the connection was successful. todo add key exchange and encryption.
-
connect
-
disconnect
public boolean disconnect() -
isConnected
public boolean isConnected()
-