summaryrefslogtreecommitdiff
path: root/server.h
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-21 23:42:05 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-21 23:42:05 +0200
commit2b2d6ad0541544074fd54c86af6de2e2947e62ce (patch)
tree84dee7bca11631193a86ee62e50916a3adc32ef4 /server.h
parent0ba4f18ea6981b4d2b4eded11b2da4b2a2192d5b (diff)
Move mcast task to a per-server task to get refcounting right
Diffstat (limited to 'server.h')
-rw-r--r--server.h7
1 files changed, 5 insertions, 2 deletions
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,