|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.dyade.aaa.util.SocketAddress
This class implements an IP Socket Address (IP address + port number)
| Constructor Summary | |
SocketAddress(java.lang.String hostname,
int port)
Creates a socket address from a hostname and a port number. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this object against the specified object. |
java.net.InetAddress |
getAddress()
Gets the InetAddress. |
java.lang.String |
getHostname()
Gets the hostname. |
int |
getPort()
Gets the port number. |
java.net.InetAddress |
resetAddr()
Resolves the IP address for this hostname, don't use an eventually caching address. |
java.lang.String |
toString()
Constructs a string representation of this InetSocketAddress. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SocketAddress(java.lang.String hostname,
int port)
hostname - the Host nameport - The port number| Method Detail |
public java.net.InetAddress resetAddr()
public int getPort()
public java.lang.String getHostname()
hostname.
public java.net.InetAddress getAddress()
InetAddress.
null if it is unresolved.public boolean equals(java.lang.Object obj)
obj - the object to compare against.
true if the objects are the same;
false otherwise.public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||