Home
last modified time | relevance | path

Searched refs:coap_context (Results 1 – 2 of 2) sorted by relevance

/net-tools-3.4.0/libcoap/examples/contiki/
Dcoap-observer.c41 static coap_context_t *coap_context; variable
87 coap_context = coap_new_context(&listen_addr); in init_coap()
91 if (!coap_context) in init_coap()
120 if (!coap_context) { in PROCESS_THREAD()
125 coap_register_response_handler(coap_context, message_handler); in PROCESS_THREAD()
135 coap_new_message_id(coap_context), in PROCESS_THREAD()
172 if (COAP_INVALID_TID == coap_send_confirmed(coap_context, &dst, request)) in PROCESS_THREAD()
178 coap_read(coap_context); /* read received data */ in PROCESS_THREAD()
179 coap_dispatch(coap_context); /* and dispatch PDUs from receivequeue */ in PROCESS_THREAD()
Dserver.c41 static coap_context_t *coap_context; variable
198 init_coap_server(&coap_context); in PROCESS_THREAD()
200 if (!coap_context) { in PROCESS_THREAD()
205 init_coap_resources(coap_context); in PROCESS_THREAD()
207 if (!coap_context) { in PROCESS_THREAD()
218 coap_read(coap_context); /* read received data */ in PROCESS_THREAD()