Contiki 3.x
|
CoAP module for separate responses.More...
#include <stdio.h>
#include <string.h>
#include "er-coap-separate.h"
#include "er-coap-transactions.h"
Go to the source code of this file.
Functions | |
void | coap_separate_reject () |
Reject a request that would require a separate response with an error message. More... | |
void | coap_separate_accept (void *request, coap_separate_t *separate_store) |
Initiate a separate response with an empty ACK. More... | |
CoAP module for separate responses.
Definition in file er-coap-separate.c.
void coap_separate_accept | ( | void * | request, |
coap_separate_t * | separate_store | ||
) |
Initiate a separate response with an empty ACK.
request | The request to accept |
separate_store | A pointer to the data structure that will store the relevant information for the response |
When the server does not have enough resources left to store the information for a separate response or otherwise cannot execute the resource handler, this function will respond with 5.03 Service Unavailable. The client can then retry later.
Definition at line 87 of file er-coap-separate.c.
References uip_appdata, UIP_IP_BUF, and uip_ipaddr_copy.
void coap_separate_reject | ( | ) |
Reject a request that would require a separate response with an error message.
When the server does not have enough resources left to store the information for a separate response or otherwise cannot execute the resource handler, this function will respond with 5.03 Service Unavailable. The client can then retry later.
Definition at line 68 of file er-coap-separate.c.