OpenTCPStream weirdness

Blitz3D Forums/Blitz3D Programming/OpenTCPStream weirdness

Leiden(Posted 2005) [#1]
I was taking a look through Blitz3D's lower level networking commands while download OpenSceneGraph. (Boredom :D).

I managed to get a little networking test running. One thing I've come accross is that once I use OpenTCPStream and send some data, I can no longer send data using that stream, I got around it by closing the stream and then re-opening another for the next piece of data. This seems sort of messy. Is there an alternative to doing this? Thnx


markcw(Posted 2005) [#2]
i think you have to do that because you have
to test all the time the connection is still valid.

so every time the machine sends data it has to
repeat the whole process again ie. open, test, send, close.


Gauge(Posted 2005) [#3]
I've never had this problem before. Can you post a brief example of your code? I believe that the client end is not reading correctly. Perhaps I can post some code that helps......