Commit Graph

168 Commits

Author SHA1 Message Date
Joshua Ashton 50da8c2508 Misc socket cleaning 2020-08-01 07:35:22 +01:00
DankParrot 5c0333a192 Sucessfully send Login Success!!! 2020-07-31 22:58:33 -07:00
DankParrot 2e8ed73cc8 Fix NetworkMessage OBOE 2020-07-31 22:58:16 -07:00
Joshua Ashton e8cfc0c1f8 Read all the packets!!!! 2020-08-01 05:53:22 +01:00
DankParrot 06a192a4b0 Hack for legacy server list ping 2020-07-31 21:45:39 -07:00
Joshua Ashton dacb7396be Append to buffer in ReadCallback 2020-08-01 05:19:23 +01:00
Joshua Ashton 9ec90e9083 Use input buffer directly 2020-08-01 05:17:27 +01:00
Joshua Ashton cc03c321f3 Implement socket shutdown/closing 2020-08-01 04:54:31 +01:00
Joshua Ashton 134fd77247 Fix logging in files with Windows includes 2020-08-01 04:53:21 +01:00
Joshua Ashton 8a65a66924 Update libevent 2020-08-01 04:41:13 +01:00
Joshua Ashton d4b8842c92 Eliminate needless indirection from TCP stack 2020-08-01 04:38:59 +01:00
DankParrot cb72973db2 Add static cast to WriteVarInt 2020-07-31 18:55:41 -07:00
DankParrot c19b051bee Add clientbound status packet types 2020-07-31 18:52:24 -07:00
DankParrot 8563f6c96f Make WriteVarInt generic like ReadVarInt 2020-07-31 18:51:47 -07:00
DankParrot 4f810153e6 Implement Status Response using ServerStatus 2020-07-31 18:37:30 -07:00
DankParrot bd1febbbf0 Fix rapidjson include dirs 2020-07-31 18:37:19 -07:00
DankParrot 3df02252f7 One Protocol per DedicatedServer 2020-07-31 18:36:29 -07:00
DankParrot 1667740c23 Implement NetworkMessage endianness 2020-07-31 18:10:43 -07:00
DankParrot a53140890d Implement ServerStatus with rapidjson 2020-07-31 17:56:35 -07:00
DankParrot 480d060360 Add rapidjson 2020-07-31 17:53:19 -07:00
DankParrot 89a8121e60 Implement PacketReader endianness 2020-07-31 17:53:19 -07:00
Joshua Ashton 9eaef8630f Refactor NetworkMessage 2020-08-01 01:49:42 +01:00
Joshua Ashton 392688ad2c Add newline to end of files 2020-08-01 00:57:33 +01:00
Joshua Ashton 553b9e72f8 Fix libevent building on Linux 2020-08-01 00:55:47 +01:00
Joshua Ashton 0e0a8d89ed Big network rewrites
Hook up protocol, lots of cleaning 🧹
2020-07-31 02:53:45 +01:00
DankParrot aaf6abaf07 Improve Properties system 2020-07-30 17:48:48 -07:00
DankParrot 9bdb675590 vscode: Fix gcc problem matcher path 2020-07-30 17:23:57 -07:00
DankParrot 3ef95bcd33 vscode: Add meson reconfigure task 2020-07-30 17:23:32 -07:00
DankParrot d3d941eb67 Use logging system in more places 2020-07-30 16:43:44 -07:00
DankParrot 09bf4ba110 Further improve logging system
Complain when too many channels
2020-07-30 16:35:18 -07:00
Joshua Ashton c2b100428d Use list instead of vector for clients 2020-07-29 15:34:10 +01:00
DankParrot 5abdafc614 Logging system cleanup 2020-07-28 21:37:22 -07:00
DankParrot 174af32355 Further implement logging system 2020-07-28 21:32:35 -07:00
DankParrot b67d8a11e8 Test of logging system 2020-07-28 18:43:59 -07:00
Joshua Ashton 8423980536 Work on refactoring networking system 2020-07-29 01:46:31 +01:00
DankParrot 31ebec99c5 Mkdir bin so I can stash without git deleting it 2020-07-27 22:28:56 -07:00
Joshua Ashton 118bceb592 Ensure m_offset gets initialized 2020-07-28 05:59:53 +01:00
Joshua Ashton 3a46a59a96 Fix format argument in DispatchQueuedPackets 2020-07-28 05:53:49 +01:00
Joshua Ashton ecf93ddede Fix narrowing error in PrependVarIntSize 2020-07-28 05:53:09 +01:00
Joshua Ashton 6bef4cb4dc Use a generic template read for PacketReader 2020-07-28 05:51:42 +01:00
DankParrot 8dabf013ef Add Protocol, ClientHandle, PacketTypes 2020-07-27 21:45:03 -07:00
DankParrot fb6d99409e Fix PacketReader const pointer 2020-07-27 21:40:47 -07:00
Joshua Ashton 620ee6ade9 Remove superfluous initializations from PacketReader 2020-07-28 05:33:54 +01:00
Joshua Ashton 5401701aca Mark PacketReader functions as inline
If we define this class in multiple objects, this avoids duplicate symbols
2020-07-28 05:32:55 +01:00
Joshua Ashton b23dce8ac9 Use const stuff for PacketReader 2020-07-28 05:29:02 +01:00
DankParrot 051a574aa7 Fix PacketReader segfault 2020-07-27 17:26:46 -07:00
DankParrot 28f64a58e1 Implement PacketReader handling just one buffer 2020-07-27 16:07:18 -07:00
DankParrot a923dd07a2 Add Common.h for general stuff 2020-07-27 16:06:35 -07:00
DankParrot 6e86728d89 Add DynamicNetworkMessage 2020-07-25 20:24:33 -07:00
DankParrot 33896730a8 Remove usage of deleted Buffer.cpp 2020-07-25 17:33:00 -07:00