simnet
Class NATRouter.InternalKey

java.lang.Object
  extended bysimnet.NATRouter.InternalKey
Enclosing class:
NATRouter

class NATRouter.InternalKey
extends java.lang.Object

Class used to index connections on our NAT side.


Field Summary
(package private)  int internalIP
          The NATted IP address of the sending node.
(package private)  int internalPort
          The port on which this connection was originally established.
(package private)  int proto
          The protocol this connection uses.
 
Constructor Summary
NATRouter.InternalKey()
           
NATRouter.InternalKey(int internalIP, int internalPort, int proto)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

internalIP

int internalIP
The NATted IP address of the sending node.


internalPort

int internalPort
The port on which this connection was originally established.


proto

int proto
The protocol this connection uses.

Constructor Detail

NATRouter.InternalKey

public NATRouter.InternalKey()

NATRouter.InternalKey

public NATRouter.InternalKey(int internalIP,
                             int internalPort,
                             int proto)
Method Detail

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

toString

public java.lang.String toString()