Easy API for Sofia DNS Resolver. More...
#include <sofia-sip/su.h>
#include <sofia-sip/su_wait.h>
#include <sofia-sip/su_tag.h>
#include <sofia-resolv/sres.h>
#include <sofia-resolv/sres_record.h>
#include <sofia-resolv/sres_async.h>
Go to the source code of this file.
Defines | |
#define | SRESOLV_H |
Defined when <sofia-sip/sresolv.h> has been included. | |
#define | SRESOLVTAG_ANY() |
Filter tag matching any sresolv tag. | |
#define | SRESTAG_RESOLV_CONF(x) |
Path of resolv.conf file. | |
#define | SRESTAG_CACHE(x) |
Pointer to existing sres_cache_t object. | |
Functions | |
sres_resolver_t * | sres_resolver_create (su_root_t *root, char const *resolv_conf, tag_type_t, tag_value_t,...) |
Create a resolver object using root reactor. | |
int | sres_resolver_destroy (sres_resolver_t *res) |
Destroy a resolver object. | |
su_socket_t | sres_resolver_root_socket (sres_resolver_t *res) |
Return a socket registered to su_root_t object. |
Easy API for Sofia DNS Resolver.
#define SRESOLV_H |
Defined when <sofia-sip/sresolv.h> has been included.
#define SRESOLVTAG_ANY | ( | ) |
Filter tag matching any sresolv tag.
#define SRESTAG_CACHE | ( | x | ) |
Pointer to existing sres_cache_t object.
#define SRESTAG_RESOLV_CONF | ( | x | ) |
Path of resolv.conf file.
sres_resolver_t* sres_resolver_create | ( | su_root_t * | root, | |
char const * | conf_file_path, | |||
tag_type_t | tag, | |||
tag_value_t | value, | |||
... | ||||
) |
Create a resolver object using root reactor.
Create a resolver object using root reactor.
The function sres_resolver_create() is used to allocate and initialize the resolver object using the Sofia asynchronous reactor su_root_t.
int sres_resolver_destroy | ( | sres_resolver_t * | res | ) |
Destroy a resolver object.
su_socket_t sres_resolver_root_socket | ( | sres_resolver_t * | res | ) |
Return a socket registered to su_root_t object.
sockfd | if succesful | |
INVALID_SOCKET | (-1) upon an error |