When starting a TCP stream, and your client sends say 20bytes. Is there any chance that you server on a NetworkServerEvent only get, say 4 of them and then gets the next 16 upon the next NetworkServerEvent?
If so is it safe to do like this;
Code: Select all
length = ReceiveNetworkData(Connection, *DataBuffer, 0)
if length >= 20
ReceiveNetworkData(Connection, *DataBuffer, length)
endif
Thanks for any answers