Logo Search packages:      
Sourcecode: sofia-sip version File versions

sres.h File Reference


Detailed Description

Defined when <sofia-resolv/sres.h> has been included. Sofia DNS Resolver.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>,

Teemu Jalava <Teemu.Jalava@nokia.com>,

Mikko Haataja <ext-Mikko.A.Haataja@nokia.com>.

Include Context
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <sofia-resolv/sres.h>

Definition in file sres.h.

#include <stdarg.h>
#include "sofia-resolv/sres_config.h"

Go to the source code of this file.

Defines

#define SRES_CONTEXT_T   struct sres_context_s
#define SRES_MAX_NAMESERVERS   (SRES_MAX_NAMESERVERS)
#define SRES_MAX_RETRY_COUNT   (SRES_MAX_RETRY_COUNT)
#define SRES_MAX_SEARCH   (SRES_MAX_SEARCH)
#define SRES_MAX_SORTLIST   (SRES_MAX_SORTLIST)
#define SRES_MAXDNAME   (SRES_MAXDNAME)
#define SRES_RETRANSMIT_INTERVAL   (SRES_RETRANSMIT_INTERVAL)
#define SRES_RETRY_INTERVAL   (SRES_RETRY_INTERVAL)

Typedefs

typedef void sres_answer_f (sres_context_t *context, sres_query_t *query, sres_record_t **answers)
typedef struct sres_cache sres_cache_t
typedef SRES_CONTEXT_T sres_context_t
typedef struct sres_query_s sres_query_t
typedef union sres_record sres_record_t
typedef struct sres_resolver_s sres_resolver_t

Enumerations

enum  {
  SRES_RETRANSMIT_INTERVAL = 500, SRES_RETRY_INTERVAL = 1, SRES_MAX_RETRY_COUNT = 6, SRES_MAX_SEARCH = 6,
  SRES_MAX_NAMESERVERS = 6, SRES_MAXDNAME = 1025, SRES_MAX_SORTLIST
}

Functions

SRESPUBFUN int sres_blocking_query (sres_resolver_t *res, uint16_t type, char const *domain, int ignore_cache, sres_record_t ***return_records)
SRESPUBFUN int sres_blocking_query_sockaddr (sres_resolver_t *res, uint16_t type, struct sockaddr const *addr, int ignore_cache, sres_record_t ***return_records)
SRESPUBFUN int sres_blocking_search (sres_resolver_t *res, uint16_t type, char const *name, int ignore_cache, sres_record_t ***return_records)
SRESPUBFUN sres_record_t ** sres_cached_answers (sres_resolver_t *res, uint16_t type, char const *domain)
SRESPUBFUN sres_record_t ** sres_cached_answers_sockaddr (sres_resolver_t *res, uint16_t type, struct sockaddr const *addr)
SRESPUBFUN int sres_filter_answers (sres_resolver_t *res, sres_record_t **answers, uint16_t type)
SRESPUBFUN void sres_free_answer (sres_resolver_t *res, sres_record_t *answer)
SRESPUBFUN void sres_free_answers (sres_resolver_t *, sres_record_t **answers)
SRESPUBFUN int sres_is_blocking (sres_resolver_t *res)
SRESPUBFUN sres_query_tsres_query (sres_resolver_t *res, sres_answer_f *callback, sres_context_t *context, uint16_t type, char const *domain)
SRESPUBFUN void sres_query_bind (sres_query_t *q, sres_answer_f *callback, sres_context_t *context)
SRESPUBFUN sres_query_tsres_query_make (sres_resolver_t *res, sres_answer_f *callback, sres_context_t *context, int dummy, uint16_t type, char const *domain)
SRESPUBFUN sres_query_tsres_query_make_sockaddr (sres_resolver_t *res, sres_answer_f *callback, sres_context_t *context, int dummy, uint16_t type, struct sockaddr const *addr)
SRESPUBFUN sres_query_tsres_query_sockaddr (sres_resolver_t *res, sres_answer_f *callback, sres_context_t *context, uint16_t type, struct sockaddr const *addr)
SRESPUBFUN sres_resolver_tsres_resolver_copy (sres_resolver_t *)
SRESPUBFUN void * sres_resolver_get_userdata (sres_resolver_t const *res)
SRESPUBFUN sres_resolver_tsres_resolver_new (char const *resolv_conf_path)
SRESPUBFUN sres_resolver_tsres_resolver_new_with_cache (char const *conf_file_path, sres_cache_t *cache, char const *options,...)
SRESPUBFUN sres_resolver_tsres_resolver_new_with_cache_va (char const *conf_file_path, sres_cache_t *cache, char const *options, va_list va)
SRESPUBFUN sres_resolver_tsres_resolver_ref (sres_resolver_t *res)
SRESPUBFUN void * sres_resolver_set_userdata (sres_resolver_t *res, void *userdata)
SRESPUBFUN void sres_resolver_unref (sres_resolver_t *res)
SRESPUBFUN int sres_resolver_update (sres_resolver_t *res, int always)
SRESPUBFUN sres_query_tsres_search (sres_resolver_t *res, sres_answer_f *callback, sres_context_t *context, uint16_t type, char const *name)
SRESPUBFUN sres_record_t ** sres_search_cached_answers (sres_resolver_t *res, uint16_t type, char const *name)
SRESPUBFUN int sres_sort_answers (sres_resolver_t *, sres_record_t **answers)


Generated by  Doxygen 1.6.0   Back to index