From 6d58619fbe353d43bfa286bfb7e3291daae7b8d5 Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 12 Feb 2025 12:30:45 -0600 Subject: [PATCH] comment --- src/host.c | 10 ++++++++++ src/user.c | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/host.c b/src/host.c index 29b9f96c..89ecc5eb 100644 --- a/src/host.c +++ b/src/host.c @@ -8,6 +8,16 @@ #include "buddy.h" #include "atomic.h" +/* TODO: + * + * Rate limiting. + * + * Resequence buffer to order incoming sequenced packets. + * + * Rolling window for message reassembly. + * This would remove the need for random access message buffers. + */ + #define PACKET_MAGIC 0xd9e3b8b6 #define PACKET_MSG_CHUNK_MAX_LEN 1024 #define PACKET_DATA_MAX_LEN 1280 /* Give enough space for msg chunk + header */ diff --git a/src/user.c b/src/user.c index c5ecf753..17f7cc7e 100644 --- a/src/user.c +++ b/src/user.c @@ -1514,7 +1514,6 @@ INTERNAL void user_update(void) } } - /* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */