From 3d2d0d4b3aa64aba018b049edf9c0396d5a598d5 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Fri, 5 Jun 2020 17:41:04 +0200 Subject: Split out active proxy connection handling to separate file --- proxy.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 proxy.h (limited to 'proxy.h') diff --git a/proxy.h b/proxy.h new file mode 100644 index 0000000..5b09cbc --- /dev/null +++ b/proxy.h @@ -0,0 +1,19 @@ +#ifndef fooproxyhfoo +#define fooproxyhfoo + +struct server_proxy { + struct sockaddr_in46 client; + char clientstr[ADDRSTRLEN]; + struct sockaddr_in46 server; + char serverstr[ADDRSTRLEN]; + struct uring_task task; + char buf[4096]; + size_t len; + struct list_head list; +}; + +void proxy_refdump(struct server_proxy *proxy); + +struct server_proxy *proxy_new(struct cfg *cfg, struct server *scfg, struct sockaddr_in46 *client, int fd); + +#endif -- cgit v1.2.3