Class ServerInfo

java.lang.Object
net.handle.hdllib.ServerInfo

public class ServerInfo extends Object
  • Field Details

    • serverId

      public int serverId
    • ipAddress

      public byte[] ipAddress
    • publicKey

      public byte[] publicKey
    • interfaces

      public Interface[] interfaces
  • Constructor Details

    • ServerInfo

      public ServerInfo()
  • Method Details

    • interfaceWithProtocol

      public Interface interfaceWithProtocol(int desiredProtocol, AbstractRequest req)
      Return the server's Interface for the given protocol which can handle the given request; assume server has only 1 such interface.
    • isIPv4

      public boolean isIPv4()
    • getInetAddress

      public InetAddress getInetAddress()
    • getAddressString

      public String getAddressString()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • cloneServerInfo

      public ServerInfo cloneServerInfo()
    • getPublicKey

      public PublicKey getPublicKey() throws Exception
      Throws:
      Exception
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hasAllZerosAddress

      public boolean hasAllZerosAddress()