edu.emory.mathcs.util.net.tunnel
Class TunnelSocketAddress

java.lang.Object
  extended byjava.net.SocketAddress
      extended byedu.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

Constructor Summary
TunnelSocketAddress(int port)
           
TunnelSocketAddress(java.net.SocketAddress tunnel, int port)
           
 
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
 

Constructor Detail

TunnelSocketAddress

public TunnelSocketAddress(int port)

TunnelSocketAddress

public TunnelSocketAddress(java.net.SocketAddress tunnel,
                           int port)
Method Detail

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()