- addNeighbor
void addNeighbor(Neighbor neighbor)
Undocumented in source. Be warned that the author may not have intended to support it.
- forward
void forward(Packet packet)
Undocumented in source. Be warned that the author may not have intended to support it.
- getNeighbors
Neighbor[] getNeighbors()
Undocumented in source. Be warned that the author may not have intended to support it.
- isNeighbour
Neighbor isNeighbour(string address)
Undocumented in source. Be warned that the author may not have intended to support it.
- launch
void launch()
Undocumented in source. Be warned that the author may not have intended to support it.
- sendPacket
void sendPacket(string address, byte[] data)
Switch
Manages session (far) and neighbour comms
You send and receive data here. The switch asks router for routes and then sends stuff on the next-hop to them (if direct) or via them (indirect/routed-through)