summaryrefslogtreecommitdiff
path: root/evhttp.h
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2007-09-07 02:49:46 +0000
committerNiels Provos <provos@gmail.com>2007-09-07 02:49:46 +0000
commit98f9616bf45951901f264b75269d1c554d50511e (patch)
treeb8a1bceb20c7c57c494d091e55a03773c5287e1b /evhttp.h
parent23866b765739016f0723fae22b688a82c14a2b5d (diff)
downloadlibevent-98f9616bf45951901f264b75269d1c554d50511e.tar.gz
support setting local address on an evhttp_connection
svn:r416
Diffstat (limited to 'evhttp.h')
-rw-r--r--evhttp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/evhttp.h b/evhttp.h
index 8b0e88d6..1536e977 100644
--- a/evhttp.h
+++ b/evhttp.h
@@ -196,6 +196,10 @@ struct evhttp_connection *evhttp_connection_new(
/* Frees an http connection */
void evhttp_connection_free(struct evhttp_connection *evcon);
+/* sets the ip address from which http connections are made */
+void evhttp_connection_set_local_address(struct evhttp_connection *evcon,
+ const char *address);
+
/* Sets the timeout for events related to this connection */
void evhttp_connection_set_timeout(struct evhttp_connection *evcon,
int timeout_in_secs);