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()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getServerDetails

      public 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.
      Parameters:
      ipAddress - the address of the server
      Returns:
      new Server instance if the connection was successful. todo add key exchange and encryption.
    • connect

      public boolean connect​(Server serverDetails)
    • disconnect

      public boolean disconnect()
    • isConnected

      public boolean isConnected()