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

Method SendCommand

neo/tools/debugger/DebuggerClient.cpp:669–684  ·  view source on GitHub ↗

================ rvDebuggerClient::SendCommand ================ */

Source from the content-addressed store, hash-verified

667================
668*/
669void rvDebuggerClient::SendCommand( const char *cmdStr )
670{
671 idBitMsg msg;
672 byte buffer[MAX_MSGLEN];
673
674 if ( !mConnected ) {
675 return;
676 }
677
678 msg.Init( buffer, sizeof( buffer ) );
679 msg.BeginWriting( );
680 msg.WriteShort( ( short ) DBMSG_EXECCOMMAND );
681 msg.WriteString( cmdStr ); // FIXME: this implies make7bit ?!
682
683 SendPacket( msg.GetData( ), msg.GetSize( ) );
684}
685

Callers 1

HandleCommandMethod · 0.80

Calls 6

BeginWritingMethod · 0.80
InitMethod · 0.45
WriteShortMethod · 0.45
WriteStringMethod · 0.45
GetDataMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected