Socket Programing

BlitzMax Forums/BlitzMax Programming/Socket Programing

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.

I have created a TCP client in BM, but not a server. You can use TSocketStream (there's an httpstream module which uses TSocketStream, and I used it as an example). I found TSocketStream to be a bit ugly, so I pulled out the lower-level calls from it and just use those. It's still only a couple of lines to set-up a socket.

I think you can use the lower-level calls to set-up a server, but I haven't tried it.