#include <stdint.h>
#include "str.h"
Go to the source code of this file.
◆ COAP_URI_SCHEME_SECURE_MASK
#define COAP_URI_SCHEME_SECURE_MASK 0x01 |
This mask can be used to check if a parsed URI scheme is secure.
Definition at line 30 of file uri.h.
◆ coap_uri_scheme_t
The scheme specifiers.
Secure schemes have an odd numeric value, others are even.
Enumerator |
---|
COAP_URI_SCHEME_COAP | |
COAP_URI_SCHEME_COAPS | |
COAP_URI_SCHEME_COAP_TCP | |
COAP_URI_SCHEME_COAPS_TCP | |
Definition at line 22 of file uri.h.
◆ coap_clone_uri()
Clones the specified coap_uri_t object.
Thie function allocates sufficient memory to hold the coap_uri_t structure and its contents. The object must be released with coap_free().
Definition at line 447 of file uri.c.
◆ coap_new_uri()
Creates a new coap_uri_t object from the specified URI.
Returns the new object or NULL on error. The memory allocated by the new coap_uri_t must be released using coap_free().
- Parameters
-
uri | The URI path to copy. |
length | The length of uri. |
- Returns
- New URI object or NULL on error.
Definition at line 428 of file uri.c.
◆ coap_uri_scheme_is_secure()
static int coap_uri_scheme_is_secure |
( |
const coap_uri_t * |
uri | ) |
|
|
inlinestatic |
Definition at line 48 of file uri.h.