Some Network questions

Previous topic - Next topic

Emil

Hi, I'm trying to wrap my head around the networking capabilities of GLBasic. So far I think that it's lacking or, hopefully, that I don't fully understand it.
The problem I'm having is that I want to send messages to the server (that handles alot of the logic of my game) and then sends out the correct data to all or specific users.

Right now I can only send messages to other players (granted it goes via the server but the server only acts as a postman). I'm thinking of creating a fake player that gets the messages needed to the server. But that seems a bit counterintuitive as that would mean that the server sends the message to a temporary player just so that the server can see the message.

How would you guys go about doing this?
Maybe I'm just missing something obvious.  :giveup:

Kitty Hello

are you using the NET or SOCK commands? NET has a method of sending to all players. With SOCK the server is responsible to do that.

Sent from my GT-N7100 using Tapatalk


r0ber7

Use SOCK commands. They're more basic, so they give you more control. You'll have to write your own protocol though.

Emil

Ah.., didn't see that in the manual. Thanks alot!