#include "config.h"
#include "net/uip-debug.h"
#include <string.h>
#include "debug.h"
#include "coap.h"
Go to the source code of this file.
Macros | |
#define | min(a, b) ((a) < (b) ? (a) : (b)) |
Functions | |
PROCESS (coap_server_process,"CoAP server process") | |
void | init_coap () |
void | hnd_get_time (coap_context_t *ctx, struct coap_resource_t *resource, coap_address_t *peer, coap_pdu_t *request, str *token, coap_pdu_t *response) |
void | init_resources (coap_context_t *ctx) |
PROCESS_THREAD (coap_server_process, ev, data) | |
Variables | |
static coap_context_t * | coap_context |
static clock_time_t | my_clock_base = 0 |
static coap_resource_t * | time_resource = NULL |
AUTOSTART_PROCESSES & | coap_server_process |
struct etimer | dirty_timer |
#define min | ( | a, | |
b | |||
) | ((a) < (b) ? (a) : (b)) |
Definition at line 92 of file coap-server.c.
void hnd_get_time | ( | coap_context_t * | ctx, |
struct coap_resource_t * | resource, | ||
coap_address_t * | peer, | ||
coap_pdu_t * | request, | ||
str * | token, | ||
coap_pdu_t * | response | ||
) |
Definition at line 96 of file coap-server.c.
void init_coap | ( | ) |
Definition at line 51 of file coap-server.c.
void init_resources | ( | coap_context_t * | ctx) |
Definition at line 143 of file coap-server.c.
PROCESS | ( | coap_server_process | , |
"CoAP server process" | |||
) |
PROCESS_THREAD | ( | coap_server_process | , |
ev | , | ||
data | |||
) |
Definition at line 192 of file coap-server.c.
|
static |
Definition at line 41 of file coap-server.c.
AUTOSTART_PROCESSES& coap_server_process |
Definition at line 48 of file coap-server.c.
struct etimer dirty_timer |
Definition at line 189 of file coap-server.c.
|
static |
Definition at line 44 of file coap-server.c.
|
static |
Definition at line 45 of file coap-server.c.