From ea836c09048453babda517e6a440d7266304ca02 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Thu, 11 Jun 2020 23:21:37 +0200 Subject: Use struct connect for the client connection as well in proxy --- utils.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils.h') diff --git a/utils.h b/utils.h index 5a6f69e..41c71e5 100644 --- a/utils.h +++ b/utils.h @@ -52,6 +52,11 @@ struct uring_task; void socket_set_low_latency(struct cfg *cfg, int sfd); +void connection_set_local(struct cfg *cfg, struct connection *conn, int fd); + +void connection_set_remote(struct cfg *cfg, struct connection *conn, + struct sockaddr_in46 *remote); + void connect_any(struct cfg *cfg, struct uring_task *task, struct list_head *addrs, struct connection *conn, void (*callback)(struct cfg *, struct connection *, int res)); -- cgit v1.2.3