Handling Socket Streams

BlitzMax Forums/BlitzMax Programming/Handling Socket 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.

So I'm writing a multiplayer client using a TCP Server written in Python, and the client written in BlitzMAX. The problem is, sometimes the server will send junk packets or blank packets (because the client is using ReadLine, so it has to receive an endline character), and the client gets backlogged. Is there any way in BlitzMAX to just read the latest packet from the stream, or to not even read blank packets? The problem is that in order to check if a packet is blank, I have to read it and process it....

Any suggestions?

Thanks!
foosh