Info on Multiplayer and Gnet?

BlitzMax Forums/BlitzMax Programming/Info on Multiplayer and Gnet?

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.

Socket._socket

Let us say your socket is like this:
Global iSocket:TSocket
iSocket = CreateSocket()
local Bytes[2]
Bytes[0] = 65 'Letter A
Bytes[1] = 66 'Letter B
sendto_( iSocket._socket,Bytes,Bytes.length,0,HostIp("127.0.0.1"), SocketWhichYouWantToSendToOnYourLocalComputer )
Should send "AB" to your own computer because you use 127.0.0.1 and then to whatever port you specify.