public interface RouterFabric extends NetIFListener
Modifier and Type | Method and Description |
---|---|
RouterPort |
addNetIF(NetIF netIF)
Add a Network Interface to this Router.
|
void |
closePort(RouterPort port)
Close port.
|
void |
closePorts()
Close ports
|
RoutingTable |
decodeRoutingTable(byte[] bytes,
NetIF netif)
Create a new routing table from a transmitted byte[]
|
boolean |
echo(Address addr)
Echo -- send datagram to id
|
NetIF |
findNetIF(java.lang.String host)
Return the interface which connects to a given host
|
NetIF |
getLocalNetIF()
Get the local NetIF that has the sockets.
|
RouterPort |
getPort(int p)
Get port N.
|
Router |
getRouter()
Get the Router this Fabric is part of
|
RoutingTable |
getRoutingTable()
List Routing table
|
boolean |
init()
initialisation
|
java.util.List<NetIF> |
listNetIF()
Get a list of all connected Network Interfaces
|
java.util.List<RouterPort> |
listPorts()
Get a list of all the ports with Network Interfaces.
|
RoutingTable |
newRoutingTable()
Create a new empty routing table
|
boolean |
ping(Address addr)
Ping a given id -- expect a response
|
boolean |
removeNetIF(NetIF netIF)
Remove a Network Interface from this Router.
|
void |
sendGoodbye()
Send goodbye message to all ports
|
boolean |
setNetIFWeight(java.lang.String name,
int weight)
Set the netIF weight associated with a link to a certain router name
|
boolean |
start()
Start me up.
|
boolean |
stop()
Stop the RouterController.
|
closedDevice, getName, getRouteFabric, ourAddress, TTLDrop
RouterPort addNetIF(NetIF netIF)
boolean removeNetIF(NetIF netIF)
NetIF getLocalNetIF()
RouterPort getPort(int p)
java.util.List<RouterPort> listPorts()
java.util.List<NetIF> listNetIF()
NetIF findNetIF(java.lang.String host)
boolean setNetIFWeight(java.lang.String name, int weight)
void closePorts()
void sendGoodbye()
void closePort(RouterPort port)
boolean init()
boolean start()
boolean stop()
Router getRouter()
RoutingTable newRoutingTable()
RoutingTable decodeRoutingTable(byte[] bytes, NetIF netif) throws java.lang.Exception
java.lang.Exception
RoutingTable getRoutingTable()
boolean ping(Address addr)
boolean echo(Address addr)
User Space Routing 0.10.3