obligaron
b0f0da5537
Fix remaining MSVC warnings in network code
2023-12-16 21:51:14 +01:00
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
2023-12-16 18:56:06 +01:00
staphen
73777b276a
Ignore invalid PT_DISCONNECT packets instead of crashing
2023-11-22 19:51:03 +01:00
staphen
2e958ee546
Avoid sending PT_DISCONNECT packet to dropped player
2023-11-22 19:51:03 +01:00
staphen
9d34cb2795
Remove frame queue exceptions from the network layer
2023-09-25 09:24:43 +02:00
Gleb Mazovetskiy and Stephen 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
4fa3732526
Add missing <cstdint> includes
...
Done with the following script:
```ruby
Dir["Source/**/*.{h,c,cc,cpp,hpp}"].each do |path|
v = File.read(path)
next if !v.include?("uint32_t") || v.include?("cstdint")
lines = v.lines
line_num = if lines[2].start_with?(" *")
lines.index { |l| l.start_with?(" */") } + 3
else
3
end
lines.insert(line_num, "#include <cstdint>\n")
File.write(path, lines.join(""))
end
```
then fixed-up manually
2023-05-10 13:50:12 +01:00
staphen
076da2aefe
Relax latency requirements for online games
2023-02-15 11:54:26 +01:00
Anders Jenbo
872456ae5d
Use size_t for a select few pnum variables
2022-08-26 13:22:04 +09:00
Gleb Mazovetskiy
188dc79f6e
Make Players a vector
2022-08-26 13:22:04 +09:00
Anders Jenbo
223fbe8387
Correctly check size of glpMsgTbl
2022-06-30 02:59:23 +02:00
staphen
18bfe39d5b
Reset plr_self after leaving game session
2022-05-31 06:40:57 +02:00
staphen
dcfd057200
Add two-way handshake between ZeroTier peers
2022-03-16 21:08:53 +01:00
Stephen C. Wills
ef1821ce57
Apply sequence number to net turns ( #4122 )
2022-03-07 05:12:45 +01:00
staphen
ffbbcc6d62
Support unencrypted multiplayer games with no password
2021-10-25 01:14:37 +02:00
Anders Jenbo
a19e7b2a3b
Remove some more use of miniwin
2021-07-17 23:54:13 +02:00
Anders Jenbo
2ca6e37c46
Clean up sub folders using clang-tidy/Android Studio
2021-07-08 03:30:25 -07:00
Anders Jenbo
0f2ad469ea
♻️ Clean up variable initialization
2021-06-27 14:58:51 -07:00
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
2021-06-27 17:34:32 +02:00
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
2021-06-27 01:06:00 +02:00
Anders Jenbo
de4ced7e4f
Clang-tidy: readability-qualified-auto
2021-06-27 00:56:08 +02:00
Anders Jenbo
d8fa29c972
Clean up more implicit bool conversion
2021-06-26 10:07:02 -07: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
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
7c054bc005
🎨 push_back -> emplace_back
2021-04-22 00:16:54 +02:00
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
2021-04-19 22:42:19 +02:00
Anders Jenbo
5fdb9ce459
🎨 Format code
2021-04-19 00:37:33 +02:00
Anders Jenbo
8c821e98d3
🚚 Restructure files
2021-04-16 03:57:22 +02:00