sources/network/rconsession.cpp

branch
protocol5
changeset 166
af5fa8c43ca8
parent 165
718a8c4df538
child 167
0150f86e68f0
equal deleted inserted replaced
165:718a8c4df538 166:af5fa8c43ca8
441 441
442 // ------------------------------------------------------------------------------------------------- 442 // -------------------------------------------------------------------------------------------------
443 // 443 //
444 void RCONSession::requestWatch(const StringList& cvars) 444 void RCONSession::requestWatch(const StringList& cvars)
445 { 445 {
446 Vector<unsigned char> message; 446 ByteArray message;
447 Bytestream stream(message); 447 Bytestream stream(message);
448 stream.writeByte(CLRC_WATCHCVAR); 448 stream.writeByte(CLRC_WATCHCVAR);
449 449
450 for (const String& cvar : cvars) 450 for (const String& cvar : cvars)
451 stream.writeString(cvar.normalized()); 451 stream.writeString(cvar.normalized());

mercurial