A little TCP problem (reusing streams)...

Blitz3D Forums/Blitz3D Programming/A little TCP problem (reusing streams)...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

a simple idea to measure the ping time is ... send something like "ping millisecs()", where millisecs is the millisecs time ! then the server sends back the millisecs time .. easy to calcuate then ... and your client don't have to store when a ping has been send.

you should develop some kind of "header" ... cause, always sending the whole string "orientation" is waste of bandwidth ... make a 1 byte constant like "const com_orientation = 1" then you only have to submit 1 byte then 12 bytes for the string