25 #include "nsapi_types.h" 122 const char *interface_name, nsapi_version_t version =
NSAPI_IPv4);
145 template <
typename S>
182 call_in_callback_cb_t call_in_cb,
const char *interface_name, nsapi_version_t version =
NSAPI_IPv4);
208 template <
typename S>
213 host, addr, addr_count, version);
233 void nsapi_dns_call_in_set(call_in_callback_cb_t
callback);
241 void nsapi_dns_reset();
nsapi_size_or_error_t nsapi_dns_query_multiple(nsapi_stack_t *stack, const char *host, nsapi_addr_t *addr, nsapi_size_t addr_count, nsapi_version_t version)
Query a domain name server for multiple IP address of a given hostname.
NetworkStack * nsapi_create_stack(nsapi_stack_t *stack)
Convert a raw nsapi_stack_t object into a C++ NetworkStack object.
nsapi_error_t nsapi_dns_add_server(nsapi_addr_t addr, const char *interface_name)
Add a domain name server to list of servers to query.
signed int nsapi_error_t
Type used to represent error codes.
signed int nsapi_size_or_error_t
Type used to represent either a size or error passed through sockets.
unsigned int nsapi_size_t
Type used to represent the size of data passed through sockets.
IP address structure for passing IP addresses by value.
nsapi_addr_t get_addr() const
Get the raw IP address.
nsapi_error_t nsapi_dns_query(nsapi_stack_t *stack, const char *host, nsapi_addr_t *addr, nsapi_version_t version)
Query a domain name server for an IP address of a given hostname.
Callback class based on template specialization.