0ad/source
josue 05afbf1805 Deduplicate the hole punching pacing between client and server
The synchronous client-side SendHolePunchingMessages and the server
worker each implemented the fw_punch config reading, the target
resolution and the message pacing. Move them to a
StunClient::HolePuncher class which sends due messages without
blocking, and express the blocking client-side variant as a loop over
it. The single-message StunClient::SendHolePunchingMessage is no
longer needed.

As a side effect, the client no longer sleeps for fw_punch.delay after
the last message, and skips sending if the server address cannot be
resolved instead of punching an unresolvable address.

Requested by Phosit in the review of #8977.
2026-06-12 18:56:32 +02:00
..
collada Fix some includes all over the place 2025-08-14 20:15:30 +02:00
dapinterface Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
graphics Replace M_PI with C++ numbers 2026-06-04 20:29:48 +02:00
gui Unwrap SDL_Event 2026-05-20 19:44:52 +02:00
i18n Reduces boost usage for strings 2025-10-16 09:17:05 +02:00
lib Remove unix_ExecutablePathname 2026-06-08 20:59:45 +02:00
lobby Remove IXmppClient.h 2026-04-14 19:38:05 +02:00
maths Replace M_PI with C++ numbers 2026-06-04 20:29:48 +02:00
network Deduplicate the hole punching pacing between client and server 2026-06-12 18:56:32 +02:00
pch Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
ps Uses SwapChain instead of direct Device calls 2026-06-08 18:27:06 +02:00
renderer Decouples acquire/present from SubmitScheduler 2026-06-08 18:27:10 +02:00
rlinterface Use cpp-httplib instead of mongoose 2026-01-24 10:45:48 +01:00
scriptinterface Cleanup wposix header and source 2026-06-08 19:52:53 +02:00
simulation2 Fix disabled pathfinder tests 2026-06-07 10:43:32 +02:00
soundmanager Replace M_PI with C++ numbers 2026-06-04 20:29:48 +02:00
third_party Removes dummy GL functions as replaced by core 2026-04-25 17:47:06 +02:00
tools Uses SwapChain instead of direct Device calls 2026-06-08 18:27:06 +02:00
CxxTestRunner.tpl Use return instead of exit in testrunner 2025-10-15 18:17:24 +02:00
main.cpp Unwrap SDL_Event 2026-05-20 19:44:52 +02:00
test_setup.cpp Remove ScriptContext::CreateContext 2026-01-24 12:03:05 +01:00