Multiplayer and UDP

BlitzMax Forums/BlitzMax Beginners Area/Multiplayer and UDP

Gehhilfe(Posted 2005) [#1]
How can i send data to a Host or Client?

I dont find a command like recv oder sendto ?

Can you help me plz

Tim


Oldtimefun(Posted 2005) [#2]
I think its covered in the Gamenet module.


Gehhilfe(Posted 2005) [#3]
But i want make own Net Functionen
Any way to use send to ?

Tim


Ole JR(Posted 2005) [#4]
If you are thinking about sockets like in C, it's there..
Take a look at mod\stdc.mod\stdc.bmx..


Gehhilfe(Posted 2005) [#5]
Any docu do use ?


Ole JR(Posted 2005) [#6]
Or maybe here: http://www.blitzbasic.com/Community/posts.php?topic=50093

When it comes to documentation... Take a look here
Small examples in C : http://pont.net/socket/


Tibit(Posted 2005) [#7]
Or make it really simple, use TNet:

'Client
TNet_SendUDP( 2, "Hi Host" )
- Where 2 is the message-type or channel

'Host
If TNet_Receive( 2 ) 'Check this channel or msgtype
Print "we got a message : "+ TNetData 'Print Data
EndIf