gcoap_dns definitions
More...
gcoap_dns definitions
Definition in file dns.h.
#include <stdint.h>#include "mutex.h"#include "net/credman.h"#include "net/coap.h"#include "net/gcoap.h"
Include dependency graph for dns.h:Go to the source code of this file.
Macros | |
| #define | CONFIG_GCOAP_DNS_SERVER_URI_LEN 64U |
| maximum length of the URI for the DNS server | |
| #define | CONFIG_GCOAP_DNS_CREDS_MAX 1U |
| maximum number of credentials that can be added with gcoap_dns_cred_add() | |
| #define | CONFIG_GCOAP_DNS_PDU_BUF_SIZE 128U |
| size of the buffer used to build a CoAP request | |
| #define | CONFIG_GCOAP_DNS_BLOCK_SIZE 64U |
| block-size used for requests (both Block2 control and Block1) | |
Functions | |
| int | gcoap_dns_query (const char *domain_name, void *addr_out, int family) |
| Query a domain name via CoAP synchronously. | |
| int | gcoap_dns_server_uri_set (const char *uri) |
| Sets and checks a URI for a DoC server. | |
| bool | gcoap_dns_server_uri_is_set (void) |
| Checks if the URI for the DoC server is set. | |
| ssize_t | gcoap_dns_server_uri_get (char *uri, size_t uri_len) |
| Gets the URI for the DoC server. | |
| void | gcoap_dns_cred_reset (void) |
| Deletes all added credentials. | |
| int | gcoap_dns_cred_add (credman_credential_t *creds) |
| Adds a credential for the use with the configured DoC server. | |
| void | gcoap_dns_cred_remove (credman_tag_t tag, credman_type_t type) |
| Remove a credential for the use with the configured DoC server. | |
| void | gcoap_dns_server_proxy_reset (void) |
| Deletes the proxy URI. | |
| int | gcoap_dns_server_proxy_set (const char *proxy) |
| Sets and checks a proxy URI. | |
| bool | gcoap_dns_server_proxy_is_set (void) |
| Checks if a proxy URI is set. | |
| ssize_t | gcoap_dns_server_proxy_get (char *proxy, size_t proxy_len) |
| Gets the proxy URI. | |