Contiki 2.5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
core
net
uDTN
dtn_network.h
Go to the documentation of this file.
1
/**
2
* \addtogroup agent
3
*
4
* @{
5
*/
6
7
/**
8
* \defgroup dtn_network Network Layer interface
9
* @{
10
*/
11
12
/**
13
* \file
14
* \author Georg von Zengen <vonzeng@ibr.cs.tu-bs.de>
15
*/
16
17
#ifndef DTN_NETWORK_H
18
#define DTN_NETWORK_H
19
20
#include "contiki.h"
21
#include "contiki-conf.h"
22
#include "
rime.h
"
23
#include "
net/rime/rimeaddr.h
"
24
25
#include "
bundle.h
"
26
#include "
routing.h
"
27
28
extern
const
struct
network_driver
dtn_network_driver
;
29
30
extern
const
struct
mac_driver
*dtn_network_mac;
31
process_event_t dtn_beacon_event;
32
33
/**
34
* \brief Send out the content that was put in the buffer.
35
* \param destination Pointer to the destination address
36
* \param length Length of the outgoing frame
37
* \param reference Reference that will be passed on into the callback
38
*/
39
void
dtn_network_send
(rimeaddr_t * destination, uint8_t length,
void
* reference);
40
41
/**
42
* \brief Returns the pointer to a buffer that can be used to contruct packets
43
* \returns Pointer to the buffer
44
*/
45
uint8_t *
dtn_network_get_buffer
();
46
47
/**
48
* \brief Returns the maximum buffer length
49
* \returns Maximum buffer length
50
*/
51
uint8_t
dtn_network_get_buffer_length
();
52
53
#endif
54
/** @} */
55
/** @} */
56
Generated on Fri Aug 30 2013 12:34:06 for Contiki 2.5 by
1.8.3.1