Link

Link

Description: Represents a "pipe" whereby different protocol messages can be transported over. Such protocol messages include data packet transport (receiving and sending) along with router advertisements messages

This class handles the Message queues for sending and receiving messages (and partially decoding them)

Constructors

this
this(string interfaceName, Engine engine)
Undocumented in source.

Members

Functions

enqueueIn
void enqueueIn(LinkUnit unit)
Undocumented in source. Be warned that the author may not have intended to support it.
getInterface
string getInterface()
Undocumented in source. Be warned that the author may not have intended to support it.
getR2RPort
ushort getR2RPort()

Returns the router-to-router port being used for this link

hasInQueue
bool hasInQueue()
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.
popInQueue
LinkUnit popInQueue()
Undocumented in source. Be warned that the author may not have intended to support it.
receive
LinkMessage receive()

Blocks to receive one message from the incoming queue

send
void send(LinkMessage message, string recipient)

Sends a message

Static functions

decode
LinkMessage decode(byte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta