server help

Blitz3D Forums/Blitz3D Beginners Area/server help

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.

Its up to you really...

readavail(stream) will tell you how many bytes have arrived on that stream. In the case of a string, if thats all you send is strings, then i guess you can keep reading them from the stream until your heart is content. If you send ints, or bytes at times, it would be best to send some sort of byte first to tell what type of data is coming in next.