Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class fi.hut.tcm.jacob.tcpip.TcpipRoutingTable

java.lang.Object
  |
  +--fi.hut.tcm.jacob.tcpip.TcpipRoutingTable

public class TcpipRoutingTable
extends java.lang.Object
TcpipRoutingTable Returns the next-hop IP based on the destination IP. Contains all the routing logic.


Field Summary
static java.lang.String GATEWAY_TAG
           
static int PARSE_DIGIT
           
static int PARSE_DOT
           
static int PARSE_EOL
           
static int PARSE_ID
           
 
Constructor Summary
TcpipRoutingTable()
           
TcpipRoutingTable(java.lang.String configFilename)
           
 
Method Summary
void addEntry(TcpipRoutingEntry entry)
           
TcpipRoutingEntry get(int destIpAddr)
           
java.util.Enumeration listEntries()
           
void printEntries()
           
TcpipRoutingEntry setDefaultGateway(TcpipRoutingEntry entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

PARSE_DIGIT

protected static final int PARSE_DIGIT

PARSE_ID

protected static final int PARSE_ID

PARSE_DOT

protected static final int PARSE_DOT

PARSE_EOL

protected static final int PARSE_EOL

GATEWAY_TAG

protected static java.lang.String GATEWAY_TAG
Constructor Detail

TcpipRoutingTable

public TcpipRoutingTable()

TcpipRoutingTable

public TcpipRoutingTable(java.lang.String configFilename)
                  throws java.io.IOException,
                         java.lang.IllegalArgumentException
Method Detail

get

public TcpipRoutingEntry get(int destIpAddr)

addEntry

public void addEntry(TcpipRoutingEntry entry)

setDefaultGateway

public TcpipRoutingEntry setDefaultGateway(TcpipRoutingEntry entry)

listEntries

public java.util.Enumeration listEntries()

printEntries

public void printEntries()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD