"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:eo**************@TK2MSFTNGP04.phx.gbl...
I am thinking of using webservices to handle comms for a game I am dev.
But not sure you when sending data to a webservice how it broadcasts
that data to other peers.
Do the peers have to block and wait for data?
I you are going to use a WebService, all the peers will have to "poll"
the webservice to find out if there is new data available. Web Services do
not provide a mechanism for "pushing" data back to the client without the
client making a call into the webservice. This means that nothing is
"broadcast", but instead data is kept in a central storage (the web server)
and the clients have to make repeated calls into the server to find out if
there is something new in that data.
That doesn't mean that the clients have to "block". Instead, the web
service will give an answer of "no new data available at this moment", so
the client can continue doing whatever the game does when noone else is
doing anything, and then poll the webservice again after a little while. If
this mechanism is not fast enough for the dynamics of your game, you may
wish to reconsider the communications mechanism, and use something else
instead of web services.