Avoid recursion when processing residual inbuf data.
[shim.git] / proxy.h
blobabd3f8fd5a491df05c2604cfc3114ab8fb5004b1
1 #ifndef _PROXY_H_
2 #define _PROXY_H_
4 struct sockaddr;
5 struct event_base;
6 struct evdns_base;
8 void proxy_client_set_max_pending_requests(size_t nreqs);
9 size_t proxy_client_get_max_pending_requests(void);
11 int proxy_init(struct event_base *base, struct evdns_base *dns,
12 const struct sockaddr *listen_here, int socklen);
13 void proxy_cleanup(void);
15 #endif