The NULL character and scripting
by Sky Frostenson · in Torque Game Engine · 05/16/2005 (4:53 pm) · 2 replies
I'm working with a network protocol that terminates commands through the use of the NULL character. I was wondering if it was possible for me to append such a character on to the end of a string in torque script. That is, I'm building a string that forms my command that I will be sending over the network. I need to add the NULL character (0x00) on to the end of the string so that the server can tell when it has received the whole command.
Thanks!
Thanks!
About the author
#2
05/17/2005 (11:16 am)
I am using a TCPObject. So you are suggesting that I add a function to the engine which does not drop the NULL character from the end of a string? Or is this something that could be done entirely at the script level?
Associate Kyle Carter