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

resolve_sip.c File Reference
#include <stdint.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "sofia-sip/sresolv.h"
#include "sofia-sip/su_string.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <poll.h>
Include dependency graph for resolve_sip.c:

Go to the source code of this file.

Classes

struct  context

Defines

#define SRES_CONTEXT_T   struct context

Enumerations

enum  progress {
  querying_naptr, querying_srv, querying_cname, querying_a6,
  querying_aaaa, querying_a
}

Functions

static void answer_to_a_query (sres_context_t *sr, sres_query_t *q, sres_record_t *answers[])
static void answer_to_naptr_query (sres_context_t *sr, sres_query_t *q, sres_record_t *answers[])
static void answer_to_srv_query (sres_context_t *sr, sres_query_t *q, sres_record_t *answers[])
int main (int argc, char *argv[])
int prepare_run (struct context *sr)
static int query_a (struct context *sr, char const *domain)
static int query_naptr (struct context *sr, char const *domain)
static int query_srv (struct context *sr, char const *domain)
void run (struct context *sr)
void usage (void)

Variables

char const name [] = "sip_resolve"

Detailed Description

Use sresolv library to resolve a SIP or SIPS domain.

This is an example program for sresolv library.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Created: Tue Jul 16 18:50:14 2002 ppessi

Definition in file resolve_sip.c.


Generated by  Doxygen 1.6.0   Back to index