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 booleanconnect(Server serverDetails)booleandisconnect()ServergetServerDetails(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.booleanisConnected()
-
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()
-