net.i2p.router.transport.ntcp
Class NTCPAddress

java.lang.Object
  extended by net.i2p.router.transport.ntcp.NTCPAddress

public class NTCPAddress
extends java.lang.Object

Wrap up an address


Field Summary
static int DEFAULT_COST
           
static java.lang.String PROP_HOST
          Host name used in RouterAddress definitions
static java.lang.String PROP_PORT
          Port number used in RouterAddress definitions
 
Constructor Summary
NTCPAddress()
           
NTCPAddress(RouterAddress addr)
           
NTCPAddress(java.lang.String host, int port)
           
 
Method Summary
 boolean equals(java.lang.Object val)
           
 boolean equals(RouterAddress addr)
           
 java.lang.String getHost()
           
 int getPort()
           
 int hashCode()
           
 boolean isPubliclyRoutable()
           
static boolean isPubliclyRoutable(java.lang.String host)
           
 void setHost(java.lang.String host)
           
 void setPort(int port)
           
 RouterAddress toRouterAddress()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_PORT

public static final java.lang.String PROP_PORT
Port number used in RouterAddress definitions

See Also:
Constant Field Values

PROP_HOST

public static final java.lang.String PROP_HOST
Host name used in RouterAddress definitions

See Also:
Constant Field Values

DEFAULT_COST

public static final int DEFAULT_COST
See Also:
Constant Field Values
Constructor Detail

NTCPAddress

public NTCPAddress(java.lang.String host,
                   int port)

NTCPAddress

public NTCPAddress()

NTCPAddress

public NTCPAddress(RouterAddress addr)
Method Detail

toRouterAddress

public RouterAddress toRouterAddress()

getHost

public java.lang.String getHost()

setHost

public void setHost(java.lang.String host)

getPort

public int getPort()

setPort

public void setPort(int port)

isPubliclyRoutable

public boolean isPubliclyRoutable()

isPubliclyRoutable

public static boolean isPubliclyRoutable(java.lang.String host)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object val)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(RouterAddress addr)