Package ghidra.framework.model

# Class ServerInfo

java.lang.Object
ghidra.framework.model.ServerInfo

All Implemented Interfaces:
  `Serializable`

public class ServerInfo extends Object implements Serializable
Container for a host name and port number.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ServerInfo(String host, int portNumber)`
  Construct a new ServerInfo object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `int`
  `getPortNumber()`
  Get the port number.
  `String`
  `getServerName()`
  Get the server hostname or IP address as originally specified.
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ServerInfo

    public ServerInfo(String host, int portNumber)
    Construct a new ServerInfo object
    Parameters:
      `host` - host name
      `portNumber` - port number

- ## Method Details

  - ### getServerName

    public String getServerName()
    Get the server hostname or IP address as originally specified.
    Returns:
      hostname or IP address as originally specified

  - ### getPortNumber

    public int getPortNumber()
    Get the port number.
    Returns:
      port number

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`