summaryrefslogtreecommitdiff
path: root/proxy.h
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-10 20:04:01 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-10 20:04:01 +0200
commit11e6254179cb78412f40d2a263bf4fb40dd7f2ff (patch)
treed641877095f16a1c6edb575c41c40b95e43b8004 /proxy.h
parent320f600cd980230b2b2e34c7256c9564af6afae9 (diff)
Improve memdebug, add basic proxy stats
Diffstat (limited to 'proxy.h')
-rw-r--r--proxy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/proxy.h b/proxy.h
index cbd2990..62ac5b7 100644
--- a/proxy.h
+++ b/proxy.h
@@ -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