BlitzPlus/Blitz3D BlitzMax UDP/TCP compability?

BlitzMax Forums/BlitzMax Programming/BlitzPlus/Blitz3D BlitzMax UDP/TCP compability?

ozak(Posted 2005) [#1]
Does anyone know if these stream implementations are compatible? I.e. for doing a BlitzMax server and a BlitzPlus or Blitz3D client.

Thanks in advance

Ozak


Yan(Posted 2005) [#2]
Why wouldn't they be?


ckob(Posted 2005) [#3]
ozak: network protocal is network protocal no matter what language, it should work just fine


ozak(Posted 2005) [#4]
I can see the source in Max is pretty lowlevel, but I can't see if the TCP stream implementation in BLitz3D/Plus are doing any internal bookkeeping stuff or whatever. However, I'll give it a spin and see how it works out :)


Tibit(Posted 2005) [#5]
I don't think the stream implentation in BMax is the same as that in B3D and B+. Perhaps it works the same but BMax does not have the same network commands as B3d have. (unless you use BNet - see Module Tweak Forum )

But that would not make it harder to code a server in BMax that works with a client in B+.

As far as I remember you wirte data to B3D's streams. Then you issue a command to send that data (UDP atleast). In BMax you write to a socket, which are then sent.

So in B3d you would write the data byte by byte( WriteBye() ), then send it. In BMax you send a buffer by giving a byte pointer to the send function. So it's basically the same. But if you use WriteLine() and not WriteByte() you might encounter som problems. I think WriteLine adds a End-Char at the end of the string.

The UDP/TCP networking in B3D should work with any other language, including BMax, as long as you know what you are doing and then do it right ;)


Vertex(Posted 2005) [#6]
BNet comes with the same functions of Blitz3D for UDP and TCP
http://blitzbasic.com/Community/posts.php?topic=43533

But the best way is to use BNetEx:
http://blitzbasic.com/Community/posts.php?topic=50723

cu olli