From f2489c89e95c07495768b5401b63ba31ec39d72d Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Mon, 22 Jun 2020 11:29:11 +0200 Subject: Move local handling from server to proxy --- proxy.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'proxy.h') diff --git a/proxy.h b/proxy.h index 0726351..75c078d 100644 --- a/proxy.h +++ b/proxy.h @@ -28,4 +28,21 @@ void proxy_delete(struct server_proxy *proxy); struct server_proxy *proxy_new(struct server *server, struct saddr *client, int fd); +struct server_local { + struct saddr local; + struct saddr client; + struct uring_task task; + + struct server *server; + struct list_head list; +}; + +bool local_open(struct server_local *local); + +void local_refdump(struct server_local *local); + +void local_delete(struct server_local *local); + +struct server_local *local_new(struct server *server, struct saddr *saddr); + #endif -- cgit v1.2.3