this is just a guess - i don't work too much with servers. offhand, i would say that it's possible that on the C++, a string could be sent like this
time_of_day command
12345 "getafile\nDoSattack" (humor me here. i don't know anything about server commands
)
with an embedded \n character - any command executed would then be run as two commands. with C, only the first command would be executed.