TCP dilemna

BlitzMax Forums/BlitzMax Programming/TCP dilemna

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.

Bah! nm it works now. :) Just doing some preliminary socket stuffs. I had the test socket not created correctly.
Graphics 800,600,0,0

Local socket:TSocket = CreateTCPSocket()
socket.bind( 16789 )
socket.listen(0)

While Not KeyHit(KEY_ESCAPE)
Cls

If KeyHit(KEY_SPACE)
	test:TSocket = CreateTCPSocket()
	ConnectSocket(test,HostIp(Null),16789)
EndIf

If socket.Accept(0) Then Notify "Accept"

Flip
Wend
End