is there a command to send messages over a network

BlitzMax Forums/BlitzMax Programming/is there a command to send messages over a network

Twinprogrammer(Posted 2012) [#1]
Hey Guys,

I am making a networked game and need to find a command that sends a message to the other players. I already have a socket binded to a port and it can connect, but how do you send data between the two? Thanks!


Mahan(Posted 2012) [#2]
The info you need should be here:

http://blitzmax.com/bmdocs/command_list_2d_cat.php?show=Network

and here:

http://blitzmax.com/bmdocs/command_list_2d_cat.php?show=Streams

and also here:

http://blitzmax.com/bmdocs/command.php?name=CreateSocketStream&ref=2d_cat

The usual way of working with low level networking in BlitzMax is though the Stream interface abtraction, which lets you Read(), ReadAvail() and Write() things.

Last edited 2012