|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.guess.GUESSEndpoint
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 |
public GUESSEndpoint(java.net.InetAddress address, int port)
address
- the ip address of the hostport
- the port the host is listening onMethod Detail |
public java.net.InetAddress getAddress()
public int getPort()
public boolean equals(java.lang.Object o)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |