A type abstracting over CoAP resource identifiers. More...
A type abstracting over CoAP resource identifiers.
Definition at line 421 of file transport.h.
#include <transport.h>
Data Fields | ||
| union { | ||
| unicoap_endpoint_t * endpoint | ||
| Endpoint itself, if identified by UNICOAP_DESTINATION_ENDPOINT. More... | ||
| const char * uri | ||
| URI string, if identified by UNICOAP_DESTINATION_URI. More... | ||
| const char * host | ||
| Hostname, if identified by UNICOAP_DESTINATION_HOST. More... | ||
| } | remote | |
| Representation data. | ||
| uint16_t | _string_length: 10 | |
| Number of ASCII code units (bytes) | ||
| unicoap_destination_type_t | type: 3 | |
| The type of this identifier. | ||
Request destinations | |
| static unicoap_destination_t | unicoap_destination_endpoint (unicoap_endpoint_t *endpoint) |
| Creates destination identifier from endpoint. | |
| static unicoap_destination_t | unicoap_destination_host (const char *host, size_t length) |
| Creates destination identifier from hostname string. | |
| static unicoap_destination_t | unicoap_destination_host_string (const char *host) |
| Creates destination identifier from null-terminated hostname string. | |
| static unicoap_destination_t | unicoap_destination_uri (const char *uri, size_t length) |
| Creates destination identifier from URI string. | |
| static unicoap_destination_t | unicoap_destination_uri_string (const char *uri) |
| Creates destination identifier from URI string. | |
| uint16_t unicoap_destination_t::_string_length |
Number of ASCII code units (bytes)
Definition at line 439 of file transport.h.
| unicoap_endpoint_t* unicoap_destination_t::endpoint |
Endpoint itself, if identified by UNICOAP_DESTINATION_ENDPOINT.
Definition at line 425 of file transport.h.
| const char* unicoap_destination_t::host |
Hostname, if identified by UNICOAP_DESTINATION_HOST.
Definition at line 431 of file transport.h.
| unicoap_destination_type_t unicoap_destination_t::type |
The type of this identifier.
Definition at line 447 of file transport.h.
| const char* unicoap_destination_t::uri |
URI string, if identified by UNICOAP_DESTINATION_URI.
Definition at line 428 of file transport.h.