dtn::DTLSR Class Reference

Static class used for generic functionality in the DTLSR (Delay Tolerant Link State Router) implementation. More...

#include <DTLSR.h>

List of all members.

Classes

class  LinkParams
 Link parameters that are sent over the network. More...
class  LinkState
 Structure used in LSAs for link state announcement. More...
class  LSA
 The LSA that's sent over the network. More...

Public Types

enum  msg_type_t { MSG_LSA = 1, MSG_EIDA = 2 }
 

Message types.

More...
typedef
oasys::SerializableVector
< LinkState
LinkStateVec

Static Public Member Functions

static void format_lsa_bundle (Bundle *bundle, const LSA *lsa)
 Format the LSA into the given bundle's payload.
static bool parse_lsa_bundle (const Bundle *bundle, LSA *lsa)
 Parse an LSA bundle.

Detailed Description

Static class used for generic functionality in the DTLSR (Delay Tolerant Link State Router) implementation.

Definition at line 32 of file DTLSR.h.


Member Typedef Documentation

typedef oasys::SerializableVector<LinkState> dtn::DTLSR::LinkStateVec

Definition at line 84 of file DTLSR.h.


Member Enumeration Documentation

Message types.

Enumerator:
MSG_LSA 
MSG_EIDA 

Definition at line 36 of file DTLSR.h.


Member Function Documentation

void dtn::DTLSR::format_lsa_bundle ( Bundle bundle,
const LSA lsa 
) [static]

Format the LSA into the given bundle's payload.

Definition at line 61 of file DTLSR.cc.

References buf, len, MSG_LSA, dtn::Bundle::mutable_payload(), dtn::BundlePayload::set_length(), and dtn::BundlePayload::write_data().

Referenced by dtn::DTLSRRouter::send_lsa().

bool dtn::DTLSR::parse_lsa_bundle ( const Bundle bundle,
LSA lsa 
) [static]

The documentation for this class was generated from the following files:
Generated on Sun Nov 21 13:21:22 2010 for DTN Reference Implementation by  doxygen 1.6.3