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

sres_async.h File Reference

Detailed Description

Defined when <sofia-resolv/sres_async.h> has been included.

Asynchronous interface for Sofia DNS Resolver.

Pekka Pessi <Pekka.Pessi@nokia.com>
Include Context
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <sofia-resolv/sres.h>
 #include <sofia-resolv/sres_async.h>

Definition in file sres_async.h.

#include "sofia-resolv/sres_config.h"

Go to the source code of this file.


#define SRES_ASYNC_T   struct sres_async_s


typedef SRES_ASYNC_T sres_async_t
typedef int sres_schedule_f (sres_async_t *async, unsigned long interval)
typedef int sres_update_f (sres_async_t *async, sres_socket_t new_socket, sres_socket_t old_socket)


SRESPUBFUN int sres_resolver_error (sres_resolver_t *, int socket)
SRESPUBFUN sres_async_tsres_resolver_get_async (sres_resolver_t const *res, sres_update_f *update)
SRESPUBFUN int sres_resolver_receive (sres_resolver_t *, int socket)
SRESPUBFUN sres_async_tsres_resolver_set_async (sres_resolver_t *res, sres_update_f *update, sres_async_t *async, int update_all)
SRESPUBFUN int sres_resolver_set_timer_cb (sres_resolver_t *res, sres_schedule_f *callback, sres_async_t *async)
SRESPUBFUN int sres_resolver_sockets (sres_resolver_t *, sres_socket_t *sockets, int n)
SRESPUBFUN void sres_resolver_timer (sres_resolver_t *, int dummy)

Generated by  Doxygen 1.6.0   Back to index