Contiki 3.x
Functions
er-coap-separate.c File Reference

 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...
 

Detailed Description

 CoAP module for separate responses.
Author
Matthias Kovatsch kovat.nosp@m.sch@.nosp@m.inf.e.nosp@m.thz..nosp@m.ch

Definition in file er-coap-separate.c.

Function Documentation

void coap_separate_accept ( void *  request,
coap_separate_t *  separate_store 
)

Initiate a separate response with an empty ACK.

Parameters
requestThe request to accept
separate_storeA 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.