Anders Jenbo
00944c9a07
Update zerotier_native.h
4 years ago
staphen
833ba4209c
Reset plr_self after leaving game session
4 years ago
Anders Jenbo
d42fdd7745
Bump dvl_multicast_addr in preperation for 1.4.0
4 years ago
Anders Jenbo
1409e604f5
Reduce string conversions
4 years ago
staphen
dcfd057200
Add two-way handshake between ZeroTier peers
4 years ago
staphen
b14fda976f
Fix IsGameHost() function for ZeroTier
4 years ago
Stephen C. Wills
ef1821ce57
Apply sequence number to net turns ( #4122 )
4 years ago
staphen
16f82226eb
[ZeroTier] Send PT_CONNECT to all players when new player joins
4 years ago
staphen
3b3419d519
Treat firstpeer as a recognized source of packets
4 years ago
staphen
e877a8ff0a
Filter out ZeroTier packets that do not come from an expected source
4 years ago
obligaron
1f7b0607a6
public game browsing: show difficulty, speed, players and possible incompatibility
4 years ago
obligaron
79b926c375
Move more options to OptionEntryBase
4 years ago
obligaron
0888546d62
Make DvlNet_SendInfoRequest non blocking
4 years ago
staphen
9b32c8d541
Update libzt to the latest version
4 years ago
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.
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Gleb Mazovetskiy
3d308983a8
Migrate to libmpq
...
libmpq is a much simpler alternative to StormLib for reading MPQ archives.
We use our own fork of libmpq: https://github.com/diasurgical/libmpq
Impact:
* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
4 years ago
Gleb Mazovetskiy
19cbe65ed8
packet.h: Fix `-Wunused-variable` ( #3379 )
4 years ago
Anders Jenbo
f0cc7adbdf
Show error dialog when ZeroTier fails
...
Fixes #2708
4 years ago
Anders Jenbo
e2a55aa9f5
Move ZeroTier config to the config folder
4 years ago
staphen
b332656f28
Fix ZeroTier crash when handling invalid packet
4 years ago
staphen
ffbbcc6d62
Support unencrypted multiplayer games with no password
4 years ago
Anders Jenbo
fe1cf9ac53
Update default ZT network id
4 years ago
Anders Jenbo
ae90193136
Game discovery over ZeroTier
4 years ago
staphen
83e395b496
Remove call to zts_stop() to prevent race condition during application shutdown
5 years ago
Vladimir Olteanu
5e5737370f
dvlnet: pass smartptrs to lambdas that free buffers
5 years ago
Anders Jenbo
a19e7b2a3b
Remove some more use of miniwin
5 years ago
Anders Jenbo
2ca6e37c46
Clean up sub folders using clang-tidy/Android Studio
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
0f2ad469ea
♻️ Clean up variable initialization
5 years ago
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
5 years ago
Anders Jenbo
db3d1d4054
Revert and disable readability-convert-member-functions-to-static
...
This breaks on GCC 6.3
5 years ago
Anders Jenbo
8a4d38dd74
Stabalize clang-tidy runs
5 years ago
Anders Jenbo
f167bd4dfb
Clang-tidy: llvm-include-order
5 years ago
Anders Jenbo
8c76d45797
Clang-tidy: modernize-avoid-bind
5 years ago
Anders Jenbo
17e67d2b90
Clang-tidy: modernize-use-equals-default
5 years ago
Anders Jenbo
8f3266244a
Clang-tidy: readability-else-after-return
5 years ago
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
5 years ago
Anders Jenbo
939003311a
Clang-tidy: readability-make-member-function-const
5 years ago
Anders Jenbo
de4ced7e4f
Clang-tidy: readability-qualified-auto
5 years ago
Anders Jenbo
bf221f4322
Clang-tidy: readability-simplify-boolean-expr
5 years ago
Anders Jenbo
d8fa29c972
Clean up more implicit bool conversion
5 years ago
Anders Jenbo
22b632f04a
♻️ Clean up implicit bool conversions
5 years ago
staphen
9ab268ee31
Reduce memory usage requirement for key derivation
5 years ago
staphen
c4cf3db821
Close TCP client socket when leaving game
5 years ago
staphen
635f760815
Add options for DISABLE_TCP and DISABLE_ZERO_TIER.
5 years ago
Trihedraf
669c86be2b
put ZeroTier files in subdir of save-path
5 years ago
Gleb Mazovetskiy
47c93c2f9c
🧹 Fix more `-Wformat` warnings
5 years ago
Xadhoom
b4f2beed6d
Network fixes suggested by glebm
5 years ago
Xadhoom
6c4bad0af1
ZeroTier networking fixes
5 years ago