java.net.InetSocketAddress
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
InetSocketAddress(int port)
public
InetSocketAddress(InetAddress address, int port)
public
InetSocketAddress(String host, int port)
Public Methods
public
static
InetSocketAddress
createUnresolved(String host, int port)
Creats an
InetSocketAddress without trying to resolve
hostname into an InetAddress. The address field is marked as unresolved.
Returns
- an
InetSocketAddress instance.
public
final
boolean
equals(Object socketAddr)
Compares the argument to the receiver, and answers true if they represent
the
same object using a class specific comparison. The
implementation in Object answers true only if the argument is the exact
same object as the receiver (==).
Parameters
| socketAddr
| Object the object to compare with this object. |
public
final
String
getHostName()
public
final
int
getPort()
public
final
int
hashCode()
Answers an integer hash code for the receiver. Any two objects which
answer true when passed to .equals must
answer the same value for this method.
public
final
boolean
isUnresolved()
public
String
toString()
Answers a string containing a concise, human-readable description of the
receiver.