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

Method SendReliableMessage

neo/framework/async/MsgChannel.cpp:671–684  ·  view source on GitHub ↗

================= idMsgChannel::SendReliableMessage ================= */

Source from the content-addressed store, hash-verified

669=================
670*/
671bool idMsgChannel::SendReliableMessage( const idBitMsg &msg ) {
672 bool result;
673
674 assert( remoteAddress.type != NA_BAD );
675 if ( remoteAddress.type == NA_BAD ) {
676 return false;
677 }
678 result = reliableSend.Add( msg.GetData(), msg.GetSize() );
679 if ( !result ) {
680 common->Warning( "idMsgChannel::SendReliableMessage: overflowed" );
681 return false;
682 }
683 return result;
684}
685
686/*
687=================

Callers 4

DisconnectFromServerMethod · 0.45
SendUserInfoToServerMethod · 0.45

Calls 4

AddMethod · 0.45
GetDataMethod · 0.45
GetSizeMethod · 0.45
WarningMethod · 0.45

Tested by

no test coverage detected