[client/idd] network: bound pending QUIC sends

This commit is contained in:
Geoffrey McRae
2026-09-30 21:44:20 +10:00
parent 5faf9e05e3
commit ffa7f10085
4 changed files with 883 additions and 86 deletions

View File

@@ -373,6 +373,15 @@ static void networkPacket(void * opaque, const LGNetPacketView * packet,
}
}
static void networkSendReady(void * opaque, LGNetService service,
bool datagram)
{
LG_Transport * this = opaque;
(void)service;
(void)datagram;
lgSignalEvent(this->frameEvent);
}
static bool networkCreate(LG_Transport ** result)
{
if (!result)
@@ -422,6 +431,7 @@ static bool networkCreate(LG_Transport ** result)
.trustCancel = networkCancelTrustPrompt,
.packet = networkPacket,
.state = networkConnectionState,
.sendReady = networkSendReady,
.capabilities = NETWORK_CAPABILITIES,
.capabilityCount = sizeof(NETWORK_CAPABILITIES) /
sizeof(NETWORK_CAPABILITIES[0]),