]> granicus.if.org Git - libevent/commit
Add two implementations of getaddrinfo: one blocking and one nonblocking.
authorNick Mathewson <nickm@torproject.org>
Mon, 16 Nov 2009 22:25:46 +0000 (22:25 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 16 Nov 2009 22:25:46 +0000 (22:25 +0000)
commit86f5742015c6ac5e83ffcf5b747cb6ca1139d066
treed165e439672e6ff8a81c79e924d7f7ca6045a27d
parent72bafc175a75f8775eae9ab7b3c828395bb0eaa6
Add two implementations of getaddrinfo: one blocking and one nonblocking.

The entry points are evutil_getaddrinfo and evdns_getaddrinfo respectively.
There are fairly extensive unit tests.

I believe this code conforms to RFC3493 pretty closely, but there are
probably more issues.  It should get tested on more platforms.

This code means we can dump the well-intentioned but weirdly-implemented
bufferevent_evdns and evutil_resolve code.

svn:r1537
20 files changed:
ChangeLog
Makefile.am
Makefile.nmake
WIN32-Code/event-config.h
bufferevent-internal.h
bufferevent_evdns.c [deleted file]
bufferevent_sock.c
configure.in
evdns.c
evutil.c
http.c
include/event2/dns.h
include/event2/dns_compat.h
include/event2/util.h
sample/dns-example.c
test/regress.h
test/regress_dns.c
test/regress_http.c
test/regress_util.c
util-internal.h