#include <mobility/MockLink.h>


Public Member Functions | |
| MockLink (DTN::Link *l, const DTN::ByteString &addr) | |
| Constructor. | |
| virtual | ~MockLink () |
| Virtual destructor. Does nothing, since we own no memory. | |
| void | send (DTN::Bundle *b) |
| Process a Bundle, passing it through to the other end of the link. | |
| const DTN::ByteString & | remoteAddr () const |
| |
This is used for links such as omnidirectional antennae. Since the underlying architecture expects links with resolvable remote addresses, we provide this in a light-weight aliasing link that passes Bundles along to the shadowed Link.
Definition at line 48 of file MockLink.h.
| Mobility::MockLink::MockLink | ( | DTN::Link * | l, | |
| const DTN::ByteString & | addr | |||
| ) | [inline] |
Constructor.
| l | The actual link that we're shadowing | |
| addr | The remote address for which we're pretending to have a point-to-point link |
Definition at line 55 of file MockLink.h.
| void Mobility::MockLink::send | ( | DTN::Bundle * | b | ) | [inline, virtual] |
Process a Bundle, passing it through to the other end of the link.
| b | The data to forward; passing ownership |
Implements DTN::Link.
Definition at line 63 of file MockLink.h.
References DTN::Link::send().
1.5.4