Wiselib
Public Types | Public Member Functions
wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P > Class Template Reference

Sec routing. More...

#include <sec_routing.h>

Inherits wiselib::RoutingBase< OsModel_P, Radio_P >.

List of all members.

Public Types

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 crypto_P crypto_t
typedef Routing_P routing_t
typedef SecRouting< OsModel,
Radio_P, crypto_P, Routing_P > 
self_type
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef uint8_t message_id_t
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 (routing_t &routing, crypto_t &crypto)
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
 SecRouting ()
 ~SecRouting ()
Radio Concept
void enable_radio (void)
void disable_radio (void)
void 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 ()

Detailed Description

template<typename OsModel_P, typename Radio_P, typename crypto_P, typename Routing_P>
class wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >

Sec routing.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
typedef Radio::block_data_t wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::block_data_t
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
typedef crypto_P wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::crypto_t
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
typedef uint8_t wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::message_id_t
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
typedef Radio::node_id_t wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::node_id_t
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
typedef OsModel_P wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::OsModel
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
typedef Radio_P wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_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]
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
typedef Routing_P wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::routing_t
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
typedef SecRouting<OsModel, Radio_P,crypto_P, Routing_P> wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::self_type
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
typedef Radio::size_t wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::size_t

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
enum wiselib::SecRouting::Restrictions
Enumerator:
MAX_MESSAGE_LENGTH 

Maximal number of bytes in payload.

template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
enum wiselib::SecRouting::SpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 

All nodes in communication range.

NULL_NODE_ID 

Unknown/No node id.


Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::SecRouting ( )
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::~SecRouting ( )

Member Function Documentation

template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
void wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::disable_radio ( void  )
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
void wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::enable_radio ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
Radio::node_id_t wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::id ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
int wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::init ( routing_t routing,
crypto_t crypto 
) [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]
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
void wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_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]
template<typename OsModel_P , typename Radio_P , typename crypto_P , typename Routing_P >
void wiselib::SecRouting< OsModel_P, Radio_P, crypto_P, Routing_P >::send ( node_id_t  receiver,
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 >::unreg_recv_callback ( int  idx) [inline, inherited]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines