mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
Replaced dynamic by static allocation in server packets header. Added command to test large packets.
This commit is contained in:
parent
dbc228370c
commit
dfa29a883f
4 changed files with 13 additions and 12 deletions
|
|
@ -576,3 +576,13 @@ bool ChatHandler::HandleSpawnVehicle(const char* args)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleSendLargePacketCommand(const char* args)
|
||||
{
|
||||
const char* stuffingString = "This is a dummy string to push the packet's size beyond 128000 bytes. ";
|
||||
std::ostringstream ss;
|
||||
while(strlen(ss.str().c_str()) < 128000)
|
||||
ss << stuffingString;
|
||||
SendSysMessage(ss.str().c_str());
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue