Wiselib
|
DSR routing implementation of Routing Concept. More...
#include <dsr_routing.h>
Inherits wiselib::RoutingBase< OsModel_P, Radio_P >.
Public Types | |
enum | ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, ERR_NOTIMPL = OsModel::ERR_NOTIMPL, ERR_BUSY = OsModel::ERR_BUSY } |
enum | SpecialNodeIds { BROADCAST_ADDRESS = Radio_P::BROADCAST_ADDRESS, NULL_NODE_ID = Radio_P::NULL_NODE_ID } |
enum | Restrictions { MAX_MESSAGE_LENGTH = Radio_P::MAX_MESSAGE_LENGTH } |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
typedef OsModel::Timer | Timer |
typedef OsModel::Debug | Debug |
typedef RoutingTable_P | RoutingTable |
typedef RoutingTable::iterator | RoutingTableIterator |
typedef RoutingTable::mapped_type | RoutingTableValue |
typedef RoutingTable::value_type | RoutingTableEntry |
typedef RoutingTableValue::Path | Path |
typedef Path::iterator | PathIterator |
typedef DsrRouting< OsModel, RoutingTable, Radio > | self_type |
typedef self_type * | self_pointer_t |
typedef Radio::node_id_t | node_id_t |
typedef Radio::size_t | size_t |
typedef Radio::block_data_t | block_data_t |
typedef Radio::message_id_t | message_id_t |
typedef Timer::millis_t | millis_t |
typedef DsrRouteDiscoveryMessage < OsModel, Radio, Path > | RouteDiscoveryMessage |
typedef DsrRoutingMessage < OsModel, Radio, Path > | RoutingMessage |
enum | ReturnValues |
typedef delegate3< void, node_id_t, size_t, block_data_t * > | radio_delegate_t |
typedef vector_static< OsModel, radio_delegate_t, MAX_RECEIVERS > | CallbackVector |
typedef CallbackVector::iterator | CallbackVectorIterator |
Public Member Functions | |
int | init (Radio &radio, Timer &timer, Debug &debug) |
int | init () |
int | destruct () |
int | reg_recv_callback (T *obj_pnt) |
int | unreg_recv_callback (int idx) |
void | notify_receivers (node_id_t from, size_t len, block_data_t *data) |
Construction / Destruction | |
DsrRouting () | |
~DsrRouting () | |
Routing Control | |
int | enable_radio (void) |
int | disable_radio (void) |
Methods called by Timer | |
void | timer_elapsed (void *userdata) |
Radio Concept | |
int | send (node_id_t receiver, size_t len, block_data_t *data) |
void | receive (node_id_t from, size_t len, block_data_t *data) |
Radio::node_id_t | id () |
DSR routing implementation of Routing Concept.
DSR routing implementation of Routing Concept ...
typedef Radio::block_data_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::block_data_t |
typedef vector_static<OsModel, radio_delegate_t, MAX_RECEIVERS> wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::CallbackVector [inherited] |
typedef CallbackVector::iterator wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::CallbackVectorIterator [inherited] |
typedef OsModel::Debug wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::Debug |
typedef Radio::message_id_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::message_id_t |
typedef Timer::millis_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::millis_t |
typedef Radio::node_id_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::node_id_t |
typedef OsModel_P wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::OsModel |
typedef RoutingTableValue::Path wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::Path |
typedef Path::iterator wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::PathIterator |
typedef Radio_P wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::Radio |
typedef delegate3<void, node_id_t, size_t, block_data_t*> wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::radio_delegate_t [inherited] |
Reimplemented in wiselib::AutoCast< OsModel_P, Radio_P, Timer_P, Debug_P >.
typedef DsrRouteDiscoveryMessage<OsModel, Radio, Path> wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RouteDiscoveryMessage |
typedef DsrRoutingMessage<OsModel, Radio, Path> wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RoutingMessage |
typedef RoutingTable_P wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RoutingTable |
typedef RoutingTable::value_type wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RoutingTableEntry |
typedef RoutingTable::iterator wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RoutingTableIterator |
typedef RoutingTable::mapped_type wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RoutingTableValue |
typedef self_type* wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::self_pointer_t |
typedef DsrRouting<OsModel, RoutingTable, Radio> wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::self_type |
typedef Radio::size_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::size_t |
typedef OsModel::Timer wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::Timer |
enum wiselib::DsrRouting::ErrorCodes |
enum wiselib::DsrRouting::Restrictions |
enum wiselib::RadioBase::ReturnValues [inherited] |
enum wiselib::DsrRouting::SpecialNodeIds |
wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::DsrRouting | ( | ) |
wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::~DsrRouting | ( | ) |
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::destruct | ( | void | ) | [inline] |
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::disable_radio | ( | void | ) |
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::enable_radio | ( | void | ) |
Radio::node_id_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::id | ( | ) | [inline] |
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::init | ( | void | ) | [inline] |
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::init | ( | Radio & | radio, |
Timer & | timer, | ||
Debug & | debug | ||
) | [inline] |
void wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::notify_receivers | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data | ||
) | [inline, inherited] |
void wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::receive | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data | ||
) |
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline, inherited] |
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::send | ( | node_id_t | receiver, |
size_t | len, | ||
block_data_t * | data | ||
) |
void wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::timer_elapsed | ( | void * | userdata | ) |
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::unreg_recv_callback | ( | int | idx | ) | [inline, inherited] |