For my game I want a network code that sends and receives databanks. The client creates a databank, then uses PokeByte to insert a header, wich will define the packet type, into the databank, after that it inserts the rest of the packetdata using PokeInt and then sends it to the server.
The databanks I'm sending are 500 bytes. In my old (BlitzBasic) code, the server could use "If ReadAvail(Stream) => 500" to check if there were any packets on the stream to read, the problem is I don't know how to do this with BlitzMax.
Could anyone give me some guidelines, or an example of how to do this?
Thanks in advantage.
The databanks I'm sending are 500 bytes. In my old (BlitzBasic) code, the server could use "If ReadAvail(Stream) => 500" to check if there were any packets on the stream to read, the problem is I don't know how to do this with BlitzMax.
Could anyone give me some guidelines, or an example of how to do this?
Thanks in advantage.