]> granicus.if.org Git - libevent/commit
Add a bufferevent function to resolve a name then connect to it.
authorNick Mathewson <nickm@torproject.org>
Tue, 3 Nov 2009 20:40:48 +0000 (20:40 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 3 Nov 2009 20:40:48 +0000 (20:40 +0000)
commit0b9eb1bffbd5af7d1dc6987f1a859e5f1e8c25e8
tree5c41f0537d17c4bec064a8733c2093fef50624ed
parentfcc7668c008ce25d47834019c3d081819851c32d
Add a bufferevent function to resolve a name then connect to it.

This function, bufferevent_socket_connect_hostname() can either use
evdns to do the resolve, or use a new function (evutil_resolve) that
uses getaddrinfo or gethostbyname, like http.c does now.

This function is meant to eventually replace the hostname resolution mess in
http.c.

svn:r1496
13 files changed:
ChangeLog
Makefile.am
bufferevent-internal.h
bufferevent_sock.c
configure.in
evdns.c
evutil.c
http.c
include/event2/bufferevent.h
include/event2/dns.h
test/regress_dns.c
test/regress_util.c
util-internal.h