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.

Here's something I started messing with. FYI I don't know exactly what method works. I know how it worked in Blitz3D and it seems to have changed slightly.

Can someone give me some pointers?

Strict

Graphics 640,480,0

Const backlog:Int = 10

' Create UDP Socket
Global iSocket:TSocket = CreateUDPSocket()
BindSocket(iSocket,0)


While Not KeyHit(KEY_ESCAPE)
Cls

If KeyHit(KEY_UP)
Local out:Int = WriteStream(iSocket)
WriteLine out,"hi"
EndIf


knock = SocketListen(iSocket,backlog)
If knock Then Print "hello";End

DrawText DottedIP(SocketLocalIP(iSocket)),5,5
DrawText SocketLocalPort(iSocket),5,25

Flip
Wend
End