MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / SendReliableGameMessage

Method SendReliableGameMessage

neo/framework/async/AsyncClient.cpp:1707–1721  ·  view source on GitHub ↗

================== idAsyncClient::SendReliableGameMessage ================== */

Source from the content-addressed store, hash-verified

1705==================
1706*/
1707void idAsyncClient::SendReliableGameMessage( const idBitMsg &msg ) {
1708 idBitMsg outMsg;
1709 byte msgBuf[MAX_MESSAGE_SIZE];
1710
1711 if ( clientState < CS_INGAME ) {
1712 return;
1713 }
1714
1715 outMsg.Init( msgBuf, sizeof( msgBuf ) );
1716 outMsg.WriteByte( CLIENT_RELIABLE_MESSAGE_GAME );
1717 outMsg.WriteData( msg.GetData(), msg.GetSize() );
1718 if ( !channel.SendReliableMessage( outMsg ) ) {
1719 common->Error( "client->server reliable messages overflow\n" );
1720 }
1721}
1722
1723/*
1724==================

Callers

nothing calls this directly

Calls 7

InitMethod · 0.45
WriteByteMethod · 0.45
WriteDataMethod · 0.45
GetDataMethod · 0.45
GetSizeMethod · 0.45
SendReliableMessageMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected