From 2b2d6ad0541544074fd54c86af6de2e2947e62ce Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 21 Jun 2020 23:42:05 +0200 Subject: Move mcast task to a per-server task to get refcounting right --- server.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'server.h') diff --git a/server.h b/server.h index 80400a1..46fac3f 100644 --- a/server.h +++ b/server.h @@ -58,7 +58,8 @@ struct server { char *rcon_password; /* For announce messages */ - struct uring_task_buf mcast_buf; + struct uring_task ann_task; + struct uring_task_buf ann_buf; /* For checking idle status */ struct idle *idle; @@ -66,8 +67,8 @@ struct server { unsigned idle_count; /* For reading config files */ - struct uring_task_buf tbuf; struct uring_task task; + struct uring_task_buf tbuf; struct list_head list; }; @@ -82,6 +83,8 @@ bool server_start(struct cfg *cfg, struct server *server); bool server_stop(struct cfg *cfg, struct server *server); +bool server_announce(struct cfg *cfg, struct server *server, int fd); + bool server_commit(struct cfg *cfg, struct server *server); bool server_add_remote(struct cfg *cfg, struct server *server, -- cgit v1.2.3