com.limegroup.gnutella.guess
Class GUESSEndpoint

java.lang.Object
  extended bycom.limegroup.gnutella.guess.GUESSEndpoint

public final class GUESSEndpoint
extends java.lang.Object

Simple host/port pair for endpoints used in GUESS. The use of the InetAddress class allows easy migration to IPv6.


Constructor Summary
GUESSEndpoint(java.net.InetAddress address, int port)
          Constructs a new GUESSEndpoint with the specified IP and port.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if two GUESSEndpoint objects are equal.
 java.net.InetAddress getAddress()
          Accessor for the InetAddress instance for this endpoint.
 int getPort()
          Accessor for the port for this endpoint.
 int hashCode()
          Returns this' hashCode.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUESSEndpoint

public GUESSEndpoint(java.net.InetAddress address,
                     int port)
Constructs a new GUESSEndpoint with the specified IP and port.

Parameters:
address - the ip address of the host
port - the port the host is listening on
Method Detail

getAddress

public java.net.InetAddress getAddress()
Accessor for the InetAddress instance for this endpoint.

Returns:
the InetAddress instance for this endpoint

getPort

public int getPort()
Accessor for the port for this endpoint.

Returns:
the port for this endpoint

equals

public boolean equals(java.lang.Object o)
Returns true if two GUESSEndpoint objects are equal.


hashCode

public int hashCode()
Returns this' hashCode.