AODVApp Class Reference
[libdtnaodv]

Application hook for the AODV/DTN interface. More...

#include <dtnaodv/AODVApp.h>

Inheritance diagram for AODVApp:

Inheritance graph
[legend]
Collaboration diagram for AODVApp:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AODVApp (AODVForwardingPolicy *pol)
 Constructor.
virtual ~AODVApp ()
 Virtual destructor.
void send (const aodv_msghdr_t *headers, const aodv_chunk_t *message)
 Send data to an application on another node.
void notify ()
 Forwards to AODVForwardingPolicy::notify().

Protected Member Functions

const DTN::ByteString & appID () const
 
Returns:
the application ID

void process (const DTN::Bundle &b)
 Process application data.

Static Protected Member Functions

static const DTN::ByteString & id ()
 
Returns:
the application ID without needing an instance


Detailed Description

Application hook for the AODV/DTN interface.

Definition at line 46 of file AODVApp.h.


Member Function Documentation

void AODVApp::send ( const aodv_msghdr_t headers,
const aodv_chunk_t message 
)

Send data to an application on another node.

Parameters:
headers The forwarding information
message The data payload

Definition at line 60 of file AODVApp.cc.

References aodv_msghdr::addr, aodv_chunk::data, aodv_addr::data, dtnaodv_bcast_addr, DTN::Bundle::kBcast, DTN::Bundle::kData, DTN::Bundle::kNoACK, aodv_chunk::length, aodv_addr::length, DTN::Consumer::m_owner, aodv_chunk::next, and AODVForwardingPolicy::traversalTime().

void AODVApp::process ( const DTN::Bundle b  )  [protected, virtual]

Process application data.

Parameters:
b The bundle containing the application data

Implements DTN::Application.

Definition at line 107 of file AODVApp.cc.

References AODVForwardingPolicy::handleMessage(), and DTN::Consumer::m_owner.


The documentation for this class was generated from the following files:
Generated on Mon Mar 24 11:15:47 2008 for Pydtn Simulator by  doxygen 1.5.4