#include <reliableradio.h>
Inherits wiselib::RadioBase< OsModel_P, Radio_P::node_id_t, Radio_P::size_t, Radio_P::block_data_t >.
List of all members.
Classes |
struct | connections |
struct | information |
Public Types |
enum | Events { MSG_DROPPED = 1,
MSG_ACK_RCVD = 2
} |
enum | SpecialNodeIds { BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS,
NULL_NODE_ID = Radio::NULL_NODE_ID
} |
enum | Restrictions { MAX_MESSAGE_LENGTH = ReliableMessage::MAX_MESSAGE_LENGTH
} |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
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 ReliableMsg< OsModel,
Radio > | ReliableMessage |
typedef delegate4< void,
uint8_t, node_id_t, size_t,
block_data_t * > | event_notifier_delegate_t |
typedef struct information | information_t |
typedef Debug_P | Debug |
typedef Timer_P | Timer |
typedef wiselib::vector_static
< OsModel, pair< information,
ReliableMessage >, MAX_PENDING > | vector_t |
typedef ReliableRadio
< OsModel_P, Radio_P, Timer_P,
Debug_P > | self_t |
enum | ReturnValues |
typedef delegate3< void,
node_id_t, size_t,
block_data_t * > | radio_delegate_t |
typedef vector_static< OsModel,
radio_delegate_t,
RADIO_BASE_MAX_RECEIVERS > | CallbackVector |
typedef CallbackVector::iterator | CallbackVectorIterator |
Public Member Functions |
void | init (Radio &radio, Timer &timer, Debug &debug) |
| ReliableRadio () |
| ~ReliableRadio () |
void | enable_radio () |
void | disable_radio () |
template<class T , void(T::*)(uint8_t, node_id_t, size_t, block_data_t *) TMethod> |
void | send_callback (node_id_t from, size_t len, block_data_t *data, T *obj_pnt) |
int | send (node_id_t id, size_t len, block_data_t *data) |
int | add_message (int msg_id, node_id_t destination, uint8_t len, uint8_t *data) |
void | time_passes (void *) |
void | reliable_daemon (void *) |
int | find_postition () |
void | receive (node_id_t from, size_t len, block_data_t *data) |
void | set_ack_list (ReliableMessage *m, int sd) |
int | check_connection (node_id_t sender) |
bool | was_received (int sd, uint16_t seq_no) |
void | set_max_retries (int max_retries) |
int | max_retries () |
int | acked_messages () |
node_id_t | id () |
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) |
template<typename OsModel_P, typename Radio_P, typename Timer_P, typename Debug_P>
class wiselib::ReliableRadio< OsModel_P, Radio_P, Timer_P, Debug_P >
Member Typedef Documentation
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
Member Enumeration Documentation
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
- Enumerator:
MAX_MESSAGE_LENGTH |
Maximal number of bytes in payload.
|
Reimplemented in wiselib::Keylevels< OsModel_P, Radio_P, Routing_P, Crypto_P, Clustering_P, Debug_P, Timer_P, Random_P >, wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >, wiselib::Keylevels< OsModel_P, Radio_P, Routing_P, Crypto_P, Clustering_P, Debug_P, Timer_P, Random_P >, wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >, and wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >.
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
- Enumerator:
BROADCAST_ADDRESS |
All nodes in communication rnage.
|
NULL_NODE_ID |
Unknown/No node id.
|
Constructor & Destructor Documentation
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
Member Function Documentation
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<class T , void(T::*)(uint8_t, node_id_t, size_t, block_data_t *) TMethod>
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::ReliableRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::set_max_retries |
( |
int |
max_retries | ) |
[inline] |
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
The documentation for this class was generated from the following file: