Building a TCP library, advice appreciated

Blitz3D Forums/Blitz3D Programming/Building a TCP library, advice appreciated

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.

Hi all, I've been looking over the TCP command set and it looks pretty straight forward. I was just curious about handling the data coming over an active stream. Seeing as the docs show reading the stream until Eof(StreamHandle) returns true, what's the best method for identifying what data type to poll off it. I was thinking sending a short to flag each segment in the stream would work, but I'm not very knowledgable of networking so here I am.

Any other stuff I should be aware of before diving in?