Contiki 2.5
Data Fields
discovery_driver Struct Reference

interface for discovery modules More...

#include <core/net/uDTN/discovery.h>

Data Fields

void(* init )()
 Initialize discovery module.
 
uint8_t(* is_neighbour )(rimeaddr_t *dest)
 Ask discovery, if this node is currently in range return 1 if yes, return 0 otherwise.
 
void(* enable )()
 Enable discovery module.
 
void(* disable )()
 Disable discovery module.
 
void(* receive )(rimeaddr_t *source, uint8_t *payload, uint8_t length)
 Pass incoming discovery beacons to the discovery module.
 
void(* alive )(rimeaddr_t *source)
 Bundle from node has been received, cache this node as available.
 
void(* dead )(rimeaddr_t *destination)
 Multiple transmission attempts to this neighbour have failed.
 
uint8_t(* discover )(rimeaddr_t *dest)
 Starts to discover a neighbour.
 
struct
discovery_neighbour_list_entry *(* 
neighbours )()
 Returns the list of currently known neighbours.
 
void(* stop_pending )()
 Stops pending discoveries.
 

Detailed Description

interface for discovery modules

Definition at line 42 of file discovery.h.