libcoap  4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Macros | Functions | Variables
coap-server.c File Reference
#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_tcoap_context
 
static clock_time_t my_clock_base = 0
 
static coap_resource_ttime_resource = NULL
 
AUTOSTART_PROCESSES & coap_server_process
 
struct etimer dirty_timer
 

Macro Definition Documentation

#define min (   a,
 
)    ((a) < (b) ? (a) : (b))

Definition at line 92 of file coap-server.c.

Function Documentation

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.

Variable Documentation

coap_context_t* coap_context
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.

clock_time_t my_clock_base = 0
static

Definition at line 44 of file coap-server.c.

coap_resource_t* time_resource = NULL
static

Definition at line 45 of file coap-server.c.