|
libcoap 4.3.5
|
Pre-defined constants that reflect defaults for CoAP. More...
Go to the source code of this file.
Data Structures | |
| struct | coap_option |
Typedefs | |
| typedef enum coap_pdu_type_t | coap_pdu_type_t |
| CoAP PDU message type definitions. | |
| typedef enum coap_request_t | coap_request_t |
| CoAP PDU Request methods. | |
| typedef enum coap_pdu_signaling_proto_t | coap_pdu_signaling_proto_t |
| typedef int | coap_mid_t |
| coap_mid_t is used to store the CoAP Message ID of a CoAP PDU. | |
| typedef enum coap_proto_t | coap_proto_t |
| CoAP protocol types. | |
| typedef enum coap_pdu_code_t | coap_pdu_code_t |
| Set of codes available for a PDU. | |
Functions | |
| const char * | coap_response_phrase (unsigned char code) |
Returns a human-readable response phrase for the specified CoAP response code. | |
| coap_pdu_t * | coap_pdu_init (coap_pdu_type_t type, coap_pdu_code_t code, coap_mid_t mid, size_t size) |
Creates a new CoAP PDU with at least enough storage space for the given size maximum message size. | |
| COAP_API coap_pdu_t * | coap_new_pdu (coap_pdu_type_t type, coap_pdu_code_t code, coap_session_t *session) |
| Creates a new CoAP PDU. | |
| void | coap_delete_pdu (coap_pdu_t *pdu) |
| Dispose of an CoAP PDU and frees associated storage. | |
| COAP_API coap_pdu_t * | coap_pdu_duplicate (const coap_pdu_t *old_pdu, coap_session_t *session, size_t token_length, const uint8_t *token, coap_opt_filter_t *drop_options) |
| Duplicate an existing PDU. | |
| int | coap_pdu_parse (coap_proto_t proto, const uint8_t *data, size_t length, coap_pdu_t *pdu) |
Parses data into the CoAP PDU structure given in result. | |
| int | coap_add_token (coap_pdu_t *pdu, size_t len, const uint8_t *data) |
Adds token of length len to pdu. | |
| size_t | coap_add_option (coap_pdu_t *pdu, coap_option_num_t number, size_t len, const uint8_t *data) |
Adds option of given number to pdu that is passed as first parameter. | |
| int | coap_add_data (coap_pdu_t *pdu, size_t len, const uint8_t *data) |
| Adds given data to the pdu that is passed as first parameter. | |
| uint8_t * | coap_add_data_after (coap_pdu_t *pdu, size_t len) |
| Adds given data to the pdu that is passed as first parameter but does not. | |
| int | coap_get_data (const coap_pdu_t *pdu, size_t *len, const uint8_t **data) |
| Retrieves the length and data pointer of specified PDU. | |
| int | coap_get_data_large (const coap_pdu_t *pdu, size_t *len, const uint8_t **data, size_t *offset, size_t *total) |
| Retrieves the data from a PDU, with support for large bodies of data that spans multiple PDUs. | |
| coap_pdu_code_t | coap_pdu_get_code (const coap_pdu_t *pdu) |
Gets the PDU code associated with pdu. | |
| void | coap_pdu_set_code (coap_pdu_t *pdu, coap_pdu_code_t code) |
Sets the PDU code in the pdu. | |
| coap_pdu_type_t | coap_pdu_get_type (const coap_pdu_t *pdu) |
Gets the PDU type associated with pdu. | |
| void | coap_pdu_set_type (coap_pdu_t *pdu, coap_pdu_type_t type) |
Sets the PDU type in the pdu. | |
| coap_bin_const_t | coap_pdu_get_token (const coap_pdu_t *pdu) |
Gets the token associated with pdu. | |
| coap_mid_t | coap_pdu_get_mid (const coap_pdu_t *pdu) |
Gets the message id associated with pdu. | |
| void | coap_pdu_set_mid (coap_pdu_t *pdu, coap_mid_t mid) |
Sets the message id in the pdu. | |
Pre-defined constants that reflect defaults for CoAP.
Definition in file coap_pdu.h.