aboutsummaryrefslogtreecommitdiff
path: root/src/querymanager.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-11-18 15:17:29 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-11-18 15:17:29 -0300
commit8c2a8461db64e92ac09f202589009ee05c69626d (patch)
treef9ce7d131e13aadd3c5fdcd8e7d7911c3395b1b3 /src/querymanager.hh
parent093e1563df314c661bb1b73524309fd154001ce2 (diff)
downloadquerymanager-8c2a8461db64e92ac09f202589009ee05c69626d.tar.gz
querymanager-8c2a8461db64e92ac09f202589009ee05c69626d.zip
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.
Diffstat (limited to 'src/querymanager.hh')
-rw-r--r--src/querymanager.hh10
1 files changed, 5 insertions, 5 deletions
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{