staphen
77a7921004
Remove overly verbose log message
4 months ago
staphen
9affb1a79b
Process network packets independent of the game's tick rate
4 months ago
staphen
cf942fa54a
Show an appropriate error message when wrong password is entered (TCP)
4 months ago
LP
f295e67b9f
Add multiplayer event logging
4 months ago
staphen
7bb5ec2ba6
Improve error messages when joining ZT games
4 months ago
staphen
83b8cb0635
Improve ZeroTier protocol error messages
4 months ago
staphen
3247b00a64
Add latency data to ZT public game descriptions
4 months ago
staphen
02a153fe26
Update last echo time when echo requests are sent
4 months ago
staphen
642ba322c4
Send echo request to update latency statistics every 5 seconds
4 months ago
staphen
93ffc209bc
Fix some bugs during the ZT handshake process
4 months ago
staphen
7564bd0fcb
Introduce DvlNet function to read latency data from providers
4 months ago
Gleb Mazovetskiy
88f706e0d1
SDL3: Add some backports / compat helpers
5 months ago
Gleb Mazovetskiy
79b74f6f72
Add `AsHexPad2` to `utils/str_cat`
7 months ago
Anders Jenbo
1c76897f2c
Apply simple const rules using clang-tidy
7 months ago
staphen
3c188fb9dd
Check if peers are ready before sending info request
9 months ago
Gleb Mazovetskiy
d94bc424df
`sgOptions` -> `GetOptions()`
...
In C++, globals initialization order accross translation units is not
defined. Accessing a global via a function ensures that it is initialized.
This will be needed for #7638 , which will statically initialize change
handlers after the Options object has been initialized.
1 year ago
Gleb Mazovetskiy
d7647d6c63
More dependency untangling
...
1. Moves more assets-related stuff from `init` to `engine/assets`.
2. Removes `SDL_audiolib` dependency from `soundsample.h`.
3. Cleans up some unused/missing includes.
1 year ago
Gleb Mazovetskiy
dd76f17e4b
Rename endian.hpp to endian_read.hpp
...
Following #7620 , which split the write functions into a separate header.
1 year ago
Gleb Mazovetskiy
a49b1f2d58
Extract Is{Any,None}Of out of engine.hpp
...
Untangles some of the dependencies
1 year ago
Gleb Mazovetskiy
19ccf7ce88
Split endian_write from endian
...
Only `endian_write` functions require SDL, splitting them out
will allow us to clean up the dependencies a bit.
1 year ago
Gleb Mazovetskiy
164ebb46bd
Big-endian networking fixes
1 year ago
Gleb Mazovetskiy
31c28e719a
Avoid `strnlen`
...
`strnlen` is not available on some platforms, such as macOS 10.4.
1 year ago
Gleb Mazovetskiy
6180d3dd3d
Reduce map lookups in dvlnet
2 years ago
qndel
24f108f193
fix many typos ( #7322 )
2 years ago
Gleb Mazovetskiy
730c26a856
Migrate maps to unordered maps
2 years ago
Gleb Mazovetskiy
e9c29fa806
Switch to ankerl::unordered_dense
2 years ago
Gleb Mazovetskiy
35e93366f6
Replace uses of deprecated u8path
2 years ago
Gleb Mazovetskiy
637b51c103
Fix a few more warnings
...
The pure attribute on `StaticVector#empty` is needed so that
it can be used in `DVL_ASSUME` without a warning about side-effects in
assume.
2 years ago
staphen
78eb3c7fe9
Parse TCP host using hostname:port format
2 years ago
obligaron
b0f0da5537
Fix remaining MSVC warnings in network code
2 years ago
obligaron
ccaf8d1dac
Use uint8_t in msg/multi/sync and fix MSVC warnings ( #6856 )
...
* Fix MSVC warnings in msg.cpp
* Move TBuffer to multi.cpp
* Fix MSVC warnings in multi.cpp
* SNet* change databytes to size_t
* msg/muli/sync: Change playerId to uint8_t
2 years ago
Gleb Mazovetskiy
e5c7f0f174
Only enable exceptions for builds with ZeroTier ( #6824 )
...
Co-authored-by: staphen <staphen@gmail.com>
2 years ago
staphen
73777b276a
Ignore invalid PT_DISCONNECT packets instead of crashing
2 years ago
staphen
2e958ee546
Avoid sending PT_DISCONNECT packet to dropped player
2 years ago
staphen
a23119ae1c
Get rid of protocol_exception
2 years ago
Anders Jenbo
9c6902b2c4
Fix missing return value in tcp_server::send()
2 years ago
staphen
ed7b8e794f
Fix missing return value in tcp_server::StartSend()
2 years ago
staphen
9d34cb2795
Remove frame queue exceptions from the network layer
3 years ago
staphen
13b5fb82fa
Build ASIO without exceptions
3 years ago
Gleb Mazovetskiy
a7a2b92421
tcp_client: Fix `SDL_SetError` call
...
Can't pass `std::string_view` for the `%s` placeholder.
3 years ago
staphen
98c0e8f2da
Don't use inheritance with tl::expected
3 years ago
staphen
bb83d527d2
Change server_exception from dvlnet_exception to PacketError
3 years ago
staphen
d4b33685a2
Prefer ASIO functions that take error codes
3 years ago
Gleb Mazovetskiy
040c4fe82f
Generalize support for Windows without wchar APIs
...
Replaces `NXDK` ifdefs that relate to the lack of wchar APIs
with the more general `DEVILUTIONX_WINDOWS_NO_WCHAR` ifdefs.
This should make it much easier to port to Windows 98.
3 years ago
Gleb Mazovetskiy
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 <staphen@gmail.com>
3 years ago
Gleb Mazovetskiy
78af369e6e
net: Remove template parameter for cdwrap
...
1. There is no reason for cdwrap to be templated, it can simply store
the factory function reference instead.
2. Marks overriden virtual functions as `override` instead of `virtual`.
3 years ago
Gleb Mazovetskiy
cf925d1edc
Replace tuples with structs
...
Structs are more readable because the fields have names.
3 years ago
Gleb Mazovetskiy
43dbd8cb57
Bump libfmt
...
Hopefully we'll be able to get rid of the custom nxdk fork soon.
3 years ago
Anders Jenbo
1616318bb1
Bump version to 1.5.1
3 years ago
Gleb Mazovetskiy
5355146d51
Use structured bindings
3 years ago