diff options
Diffstat (limited to 'proxy.h')
-rw-r--r-- | proxy.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -6,12 +6,14 @@ struct server_proxy { char clientstr[ADDRSTRLEN]; struct uring_task_buf clientbuf; struct uring_task clienttask; + uint64_t client_bytes; int cfd; struct sockaddr_in46 server; char serverstr[ADDRSTRLEN]; struct uring_task_buf serverbuf; struct uring_task servertask; + uint64_t server_bytes; int sfd; unsigned next_remote; @@ -21,6 +23,8 @@ struct server_proxy { void proxy_refdump(struct server_proxy *proxy); +void proxy_delete(struct cfg *cfg, struct server_proxy *proxy); + struct server_proxy *proxy_new(struct cfg *cfg, struct server *scfg, struct sockaddr_in46 *client, int fd); #endif |