edu.emory.mathcs.util.net.tunnel
Class TunnelSocketAddress
java.lang.Object
java.net.SocketAddress
edu.emory.mathcs.util.net.tunnel.TunnelSocketAddress
- All Implemented Interfaces:
- java.io.Serializable
- public class TunnelSocketAddress
- extends java.net.SocketAddress
Represents a composite address of tunnelled socket.
- Version:
- 1.0
- Author:
- Dawid Kurzyniec
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object obj)
|
int |
getPort()
Returns the logical port number associated with this tunneled socket
address. |
java.net.SocketAddress |
getTunnelAddress()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TunnelSocketAddress
public TunnelSocketAddress(int port)
TunnelSocketAddress
public TunnelSocketAddress(java.net.SocketAddress tunnel,
int port)
getTunnelAddress
public java.net.SocketAddress getTunnelAddress()
getPort
public int getPort()
- Returns the logical port number associated with this tunneled socket
address.
- Returns:
- logical port number
hashCode
public int hashCode()
equals
public boolean equals(java.lang.Object obj)
toString
public java.lang.String toString()