26 Commits
Author SHA1 Message Date
staphen 2e958ee546 Avoid sending PT_DISCONNECT packet to dropped player 2023-11-22 19:51:03 +01:00
staphen ed7b8e794f Fix missing return value in tcp_server::StartSend() 2023-10-01 02:36:23 +02:00
staphen 9d34cb2795 Remove frame queue exceptions from the network layer 2023-09-25 09:24:43 +02:00
staphen 13b5fb82fa Build ASIO without exceptions 2023-09-20 20:30:32 -04:00
staphen bb83d527d2 Change server_exception from dvlnet_exception to PacketError 2023-09-18 00:17:47 +02:00
staphen d4b33685a2 Prefer ASIO functions that take error codes 2023-09-18 00:17:47 +02:00
Gleb MazovetskiyandStephen C. Wills 4d0341afb5 net: Replace packet_exception with tl::expected
The network code still has ways to go to get rid of exceptions,
this is but a small first step.

Co-authored-by: Stephen C. Wills <[email protected]>
2023-09-15 18:32:56 +01:00
Gleb Mazovetskiy 188dc79f6e Make Players a vector 2022-08-26 13:22:04 +09:00
staphen dcfd057200 Add two-way handshake between ZeroTier peers 2022-03-16 21:08:53 +01:00
ephphatha 0cd7c530bc Drop connections when a packet with length 0 header is received
This prevents malicious connections crashing a game by sending null bytes, but might still allow errors when packets are manually crafted.
2022-01-01 14:34:34 +01:00
staphen ffbbcc6d62 Support unencrypted multiplayer games with no password 2021-10-25 01:14:37 +02:00
Vladimir Olteanu 5e5737370f dvlnet: pass smartptrs to lambdas that free buffers 2021-08-17 17:48:31 +02:00
Anders Jenbo 2ca6e37c46 Clean up sub folders using clang-tidy/Android Studio 2021-07-08 03:30:25 -07:00
Anders Jenbo db3d1d4054 Revert and disable readability-convert-member-functions-to-static
This breaks on GCC 6.3
2021-06-27 12:03:11 +02:00
Anders Jenbo 8c76d45797 Clang-tidy: modernize-avoid-bind 2021-06-27 01:42:42 +02:00
Anders Jenbo 17e67d2b90 Clang-tidy: modernize-use-equals-default 2021-06-27 01:16:56 +02:00
Anders Jenbo 22b632f04a ♻️Clean up implicit bool conversions 2021-06-26 08:57:59 -07:00
Gleb Mazovetskiy 46a5dc147b 🔨 Restore GCC 5 compatibility
We can support this much older compiler with just these few minor
changes.
2021-04-27 14:26:14 +02:00
Jmgr 1b7e0d2cb3 Migrate existing log entries 2021-04-25 02:39:42 +02:00
Anders Jenbo 2969b80163 🎨 Run readability-identifier-naming on all src sub-folders 2021-04-22 03:53:35 +02:00
Anders Jenbo 1e3ed903be 🎨 strip redundant else 2021-04-22 00:39:48 +02:00
Anders Jenbo d024f79b0e 🧹 performance-unnecessary-value-param 2021-04-22 00:08:19 +02:00
Anders Jenbo 373f28736f 🎨 Acceptable parts of modernize-* 2021-04-19 22:42:19 +02:00
Anders Jenbo b978d80119 🎨 llvm-include-order 2021-04-19 20:11:20 +02:00
Anders Jenbo bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Anders Jenbo 8c821e98d3 🚚 Restructure files 2021-04-16 03:57:22 +02:00