Simple dns query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 19, 2008 at 10:31 AM, Mukesh Srivastav <muki_champs at yahoo.com>wrote:

> Hi,
>  please go throgh the following link of pjsip
>
> http://www.pjsip.org/pjsip/docs/html/group__PJSIP__RESOLVE.htm
>
>
>
I think the relevant doc is this instead:
http://www.pjsip.org/pjlib-util/docs/html/group__PJ__DNS.htm

The usage is quite simple. First create and configure a resolver instance:
  - pj_dns_resolver_create()
  - pj_dns_resolver_set_ns()
  - and optionally pj_dns_resolver_get/set_settings()

And whenever you want to resolve a DNS entry, just call:
pj_dns_resolver_start_query()

I think the doc should have explained everything. If you need a sample, look
at the DNS SRV resolver source code (srv_resolver.c), also in pjlib-util.

Btw the API only provides asynchronous resolution.

Cheers
 Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080819/826b9867/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux