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

stun_dns.c File Reference


Detailed Description

Functins to discover STUN server address using DNS-SRV.

Refs:

Author:
Kai Vehmanen <kai.vehmanen@nokia.com>

Definition in file stun_dns.c.

#include "config.h"
#include <sofia-sip/stun.h>
#include <sofia-sip/su.h>
#include <sofia-sip/su_alloc.h>
#include <sofia-sip/su_wait.h>
#include <sofia-sip/sresolv.h>
#include "stun_internal.h"

Go to the source code of this file.

Classes

struct  stun_dns_lookup_s

Defines

#define SRES_CONTEXT_T   stun_dns_lookup_t
#define STUN_SRV_SERVICE_TCP   "_stun._tcp"
#define STUN_SRV_SERVICE_UDP   "_stun._udp"

Enumerations

enum  stun_dns_state { stun_dns_udp = 1, stun_dns_tls = 2, stun_dns_done = stun_dns_udp | stun_dns_tls }

Functions

static void priv_sres_cb (stun_dns_lookup_t *self, sres_query_t *q, sres_record_t **answer)
stun_dns_lookup_t * stun_dns_lookup (stun_magic_t *magic, su_root_t *root, stun_dns_lookup_f func, const char *domain)
void stun_dns_lookup_destroy (stun_dns_lookup_t *self)
int stun_dns_lookup_stp_addr (stun_dns_lookup_t *self, const char **target, uint16_t *port)
int stun_dns_lookup_tcp_addr (stun_dns_lookup_t *self, const char **target, uint16_t *port)
int stun_dns_lookup_udp_addr (stun_dns_lookup_t *self, const char **target, uint16_t *port)

Variables

static char const __func__ [] = "stun_dns"


Generated by  Doxygen 1.6.0   Back to index