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

lookup_stun_server.c File Reference


Detailed Description

Test app for STUN DNS-SRV lookups.

Author:
Kai Vehmanen <Kai.Vehmanen@nokia.com>
Todo:
TODO
  • picks one UDP and TLS target:port
  • does not pick up A/AAAA records that might be delivered in 'Additional Data' section as defined in RFC2782

Definition in file lookup_stun_server.c.

#include <stdio.h>
#include <sofia-sip/su.h>
#include <sofia-sip/su_alloc.h>
#include <sofia-sip/su_wait.h>
#include <sofia-sip/stun.h>

Go to the source code of this file.

Defines

#define RESULT(x)   (x == 0 ? "OK" : "ERRORS")
#define STUN_MAGIC_T   su_root_t

Functions

static void lookup_cb (stun_dns_lookup_t *self, su_root_t *root)
int main (int argc, char *argv[])

Variables

static char * g_domain = NULL


Generated by  Doxygen 1.6.0   Back to index