public interface NetIF extends DatagramDevice
Modifier and Type | Method and Description |
---|---|
void |
close()
Close a NetIF
|
boolean |
connect()
Connect
|
int |
getID()
Get the ID of this NetIF.
|
Address |
getRemoteRouterAddress()
Get the Address of the remote router this NetIF is connected to
|
java.lang.String |
getRemoteRouterName()
Get the name of the remote router this NetIF is connected to.
|
RouterPort |
getRouterPort()
Get the RouterPort a NetIF is plugIged into.
|
NetStats |
getStats()
Get the interface stats.
|
int |
getWeight()
Get the weight of this NetIF.
|
boolean |
isClosed()
Is closed.
|
boolean |
isLocal()
Is this a local interface
|
void |
remoteClose()
Remote close received
|
void |
setID(int id)
Set the ID of this NetIF.
|
void |
setRemoteRouterAddress(Address addr)
Set the Address of the remote router this NetIF is connected to.
|
void |
setRemoteRouterName(java.lang.String name)
Set the name of the remote router this NetIF is connected to.
|
void |
setRouterPort(RouterPort rp)
Set the RouterPort a NetIF is plugIged into.
|
void |
setWeight(int w)
Set the weight of this NetIF.
|
enqueueDatagram, getAddress, getFabricDevice, getName, getNetIFListener, outQueueHandler, sendDatagram, setAddress, setName, setNetIFListener
boolean connect() throws java.io.IOException
java.io.IOException
int getID()
void setID(int id)
int getWeight()
void setWeight(int w)
java.lang.String getRemoteRouterName()
void setRemoteRouterName(java.lang.String name)
Address getRemoteRouterAddress()
void setRemoteRouterAddress(Address addr)
NetStats getStats()
void close()
boolean isLocal()
boolean isClosed()
void remoteClose()
RouterPort getRouterPort()
void setRouterPort(RouterPort rp)
User Space Routing 0.10.3