Contiki 2.5
agent.h
Go to the documentation of this file.
1 /**
2  * \addtogroup net
3  * @{
4  */
5 
6 /**
7  * \defgroup agent uDTN: Bundle Protocol stack
8  *
9  * @{
10  */
11 
12 /**
13  * \defgroup bprocess Bundle Protocol Agent
14  *
15  * @{
16  */
17 
18 /**
19  * \file
20  * \author Georg von Zengen <vonzeng@ibr.cs.tu-bs.de>
21  */
22 
23 #ifndef AGENT_H
24 #define AGENT_H
25 
26 #include "contiki.h"
27 
28 extern uint32_t dtn_node_id;
29 extern uint32_t dtn_seq_nr;
30 PROCESS_NAME(agent_process);
31 
32 /**
33 * \name Events internal communication
34 * @{
35 */
36 /* Event thrown to the bundle agent by network layer */
37 process_event_t dtn_receive_bundle_event;
38 
39 /* Event thrown to the bundle agent by storage */
40 process_event_t dtn_bundle_in_storage_event;
41 
42 /* Event to transmit an administrative record */
43 process_event_t dtn_send_admin_record_event;
44 
45 /* Event to transmit a bundle to a specific node */
46 process_event_t dtn_send_bundle_to_node_event;
47 /** @} */
48 
49 /**
50 * \brief Bundle Protocols initialisation
51 *
52 * called by contikis main function
53 */
54 void agent_init(void);
55 void agent_delete_bundle(uint32_t bundle_number);
56 
57 /**
58  * \brief uDTN log domains
59  */
60 #define LOG_NET 0
61 #define LOG_BUNDLE 1
62 #define LOG_ROUTE 2
63 #define LOG_STORE 3
64 #define LOG_SDNV 4
65 #define LOG_SLOTS 5
66 #define LOG_AGENT 6
67 #define LOG_CL 7
68 #define LOG_DISCOVERY 8
69 #endif
70 
71 /** @} */
72 /** @} */
73 /** @} */