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 --- proxy.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'proxy.h') diff --git a/proxy.h b/proxy.h index 6b6e265..838cbb5 100644 --- a/proxy.h +++ b/proxy.h @@ -2,16 +2,13 @@ #define fooproxyhfoo struct server_proxy { - struct sockaddr_in46 client; - char clientstr[ADDRSTRLEN]; + struct connection client_conn; struct uring_task_buf clientbuf; struct uring_task clienttask; uint64_t client_bytes; int cfd; struct connection server_conn; - struct sockaddr_in46 server; - char serverstr[ADDRSTRLEN]; struct uring_task_buf serverbuf; struct uring_task servertask; uint64_t server_bytes; -- cgit v1.2.3