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


_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to