libnx
Data Structures | Functions
sfdnsres.h File Reference

Domain name resolution service IPC wrapper. More...

#include "../types.h"
#include <sys/socket.h>

Go to the source code of this file.

Data Structures

struct  SfdnsresConfig
 Configuration structure for sfdnsres. More...
 
struct  SfdnsresRequestResults
 Result values returned by the DNS request commands. More...
 

Functions

Result sfdnsresGetHostByName (SfdnsresRequestResults *ret, const SfdnsresConfig *config, void *out_he_serialized, const char *name)
 
Result sfdnsresGetHostByAddr (SfdnsresRequestResults *ret, const SfdnsresConfig *config, void *out_he_serialized, const void *addr, socklen_t len, int type)
 
Result sfdnsresGetHostStringError (int err, char *str, size_t str_size)
 
Result sfdnsresGetGaiStringError (int err, char *str, size_t str_size)
 
Result sfdnsresGetAddrInfo (SfdnsresRequestResults *ret, const SfdnsresConfig *config, const char *node, const char *service, const void *hints_serialized, size_t hints_serialized_size, void *res_serialized)
 
Result sfdnsresGetNameInfo (SfdnsresRequestResults *ret, const SfdnsresConfig *config, const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags)
 
Result sfdnsresRequestCancelHandle (u32 *out_handle)
 Requests an handle for use with sfdnsresCancelSocketCall.
 
Result sfdnsresCancelSocketCall (SfdnsresRequestResults *ret, u32 handle)
 Cancels a DNS request (how? which requests?). Bug: always sets errno?
 
Result sfdnsresCancelAllSocketCalls (SfdnsresRequestResults *ret)
 Cancels all DNS requests made by the current process (how? which requests?). Bug: always sets errno?
 
Result sfdnsresClearDnsIpServerAddressArray (void)
 Clears up to 4 DNS server IPs registered by bsdcfg (DHCP client, etc.).
 

Detailed Description

Domain name resolution service IPC wrapper.

Please use socket.c instead.

Author
TuxSH