server help

Blitz3D Forums/Blitz3D Beginners Area/server help

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.