diff options
author | Niels Provos <provos@gmail.com> | 2007-09-07 02:49:46 +0000 |
---|---|---|
committer | Niels Provos <provos@gmail.com> | 2007-09-07 02:49:46 +0000 |
commit | 98f9616bf45951901f264b75269d1c554d50511e (patch) | |
tree | b8a1bceb20c7c57c494d091e55a03773c5287e1b /evhttp.h | |
parent | 23866b765739016f0723fae22b688a82c14a2b5d (diff) | |
download | libevent-98f9616bf45951901f264b75269d1c554d50511e.tar.gz |
support setting local address on an evhttp_connection
svn:r416
Diffstat (limited to 'evhttp.h')
-rw-r--r-- | evhttp.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |