async dns
common at gmx.ch
common at gmx.ch
Tue Mar 17 00:32:40 CET 2009
Ryan Dahl wrote:
> Hello
> Is anyone doing DNS lookups with libev?
yes
> Do you use Ian Jackson's adns?
no
> Perhaps you have some code you can share?
yes
I use udns, single socket, *very* easy to embed, good documentation, udp
only, but does aaaa records, leightweight.
http://www.corpit.ru/mjt/udns.html
example code
> http://svn.carnivore.it/browser/dump/libev_udns.c
it is a little large as I
* have a timeout for each domain (you don't want to miss this)
* do a&aaaa resolves for each domain (tomorrow ...)
* sort the results by af & 'number' for each domain (prefer ipv6 - if
availible)
leakfree in valgrind.
MfG
Markus
More information about the libev
mailing list