summaryrefslogtreecommitdiff
path: root/server.h
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-06 12:48:27 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-06 12:48:27 +0200
commit459c4ae387ce3bf02a4ab27c2fc382974f3e1fae (patch)
tree31b0780499874f1a35f50da8c1a3d5926b26c067 /server.h
parented8cb35c9ff4547275b03bd93baeff1cda3de76e (diff)
Fixup announce multicast messages to create real per-server messages
Diffstat (limited to 'server.h')
-rw-r--r--server.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/server.h b/server.h
index d066588..a6936cd 100644
--- a/server.h
+++ b/server.h
@@ -17,9 +17,16 @@ struct server {
struct list_head proxys;
bool running;
- struct uring_task task;
+ /* For config files */
char buf[4096];
size_t len;
+
+ /* For announce messages */
+ struct iovec mcast_iov;
+ struct msghdr mcast_msg;
+ char mcast_buf[4096];
+
+ struct uring_task task;
struct list_head list;
};