#include <pydtn/AliasLink.h>


Public Member Functions | |
| AliasLink (SimLink *link) | |
| Constructor taking a pointer to a SimLink. | |
| AliasLink (const AliasLink &aLink) | |
| Copy constructor. | |
| virtual | ~AliasLink () |
| Virtual destructor — does nothing. | |
| void | send (DTN::Bundle *b) |
| Forward a DTN::Bundle to the send method of the aliased SimLink. | |
| const DTN::ByteString & | remoteAddr () const |
| |
Protected Member Functions | |
| AliasLink () | |
| Default constructor, to inhibit the automatic definition. | |
This class allows a DTN::Node to take ownership of it, including deleting it, without affecting the actual SimLink that describes a connection between two DTN::Nodes. Multiple aliases can be created for a particular SimLink, so that a link may appear multiple times in a routing table for different address prefixes.
Definition at line 51 of file AliasLink.h.
| AliasLink::AliasLink | ( | SimLink * | link | ) | [inline] |
Constructor taking a pointer to a SimLink.
| link | The SimLink to alias |
Definition at line 58 of file AliasLink.h.
| void AliasLink::send | ( | DTN::Bundle * | b | ) | [inline, virtual] |
Forward a DTN::Bundle to the send method of the aliased SimLink.
| b | a DTN::Bundle to forward; passes ownership |
Implements DTN::Link.
Definition at line 70 of file AliasLink.h.
References SimLink::send().
1.5.4