summaryrefslogtreecommitdiff
path: root/proxy.h
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-22 11:29:11 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-22 11:29:11 +0200
commitf2489c89e95c07495768b5401b63ba31ec39d72d (patch)
tree214d29dffaa20c2fff2fd6672168da83508b1f39 /proxy.h
parent4f9bedb603c772880248914617cee0b44f848290 (diff)
Move local handling from server to proxy
Diffstat (limited to 'proxy.h')
-rw-r--r--proxy.h17
1 files changed, 17 insertions, 0 deletions
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