diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-10 20:04:01 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-10 20:04:01 +0200 |
commit | 11e6254179cb78412f40d2a263bf4fb40dd7f2ff (patch) | |
tree | d641877095f16a1c6edb575c41c40b95e43b8004 /proxy.h | |
parent | 320f600cd980230b2b2e34c7256c9564af6afae9 (diff) |
Improve memdebug, add basic proxy stats
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 |