From 8c2a8461db64e92ac09f202589009ee05c69626d Mon Sep 17 00:00:00 2001 From: fusion32 Date: Tue, 18 Nov 2025 15:17:29 -0300 Subject: fix problem with connection input + allow login server to query worlds There was a small problem with how we computed the size of the packet "header". It was unlikely to manifest tho, because it's at the beginning of a TCP message and TCP segments aren't that small, unless the whole message is that small. I'm also allowing login servers to query for world information to allow a basic form of `STATUS` to be implemented. --- src/querymanager.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/querymanager.hh') diff --git a/src/querymanager.hh b/src/querymanager.hh index c9ab96b..eb11754 100644 --- a/src/querymanager.hh +++ b/src/querymanager.hh @@ -1234,11 +1234,11 @@ enum : int { }; enum ConnectionState: int { - CONNECTION_FREE = 0, - CONNECTION_READING = 1, - CONNECTION_REQUEST = 2, - CONNECTION_RESPONSE = 3, - CONNECTION_WRITING = 4, + CONNECTION_FREE = 0, + CONNECTION_READING = 1, + CONNECTION_REQUEST = 2, + CONNECTION_RESPONSE = 3, + CONNECTION_WRITING = 4, }; struct TConnection{ -- cgit v1.2.3