473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Webservices and broadcasting to peers

Hi

This a related question to recent post.

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?

rotsey
Jul 26 '07 #1
2 1416
"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.

Jul 26 '07 #2
great answer. thanks Alberto

"Alberto Poblacion" <ea******************************@poblacion.orgwro te
in message news:uP**************@TK2MSFTNGP03.phx.gbl...
"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.

Jul 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: david | last post by:
Hi, I would like to allow users to listen to live radio broadcasting within my ASP page, is this possible? Can you show me some code? Thanks in advance David
8
by: Komandur Kannan | last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The backend is Oracle and a middle tier web services development done in Vb.net. We use pessimistic Locking due to...
4
by: Rain | last post by:
Hi, I have this problem in my UDP broadcasting, im a newbie in UDP, any help at all would be very much appreciated. I have a working UDP broadcast that sends and recieves without any problem. I...
0
by: salman | last post by:
hello i have client network (LAN) connected with server, and some client connected to server via RAS (Remote Access Service) and makes VPN. My problem is that when i broadcast message to...
1
by: Rain | last post by:
in UDP broadcasting, how do i know from which client was the message sent to the server? is there a way to know this without having to place the IP of the sender in the message itself? Thank you so...
5
by: Rotsey | last post by:
Hi, I am writing a game that I want to net enable. So I want to be able to connect to peers over the internet. I will be sending very small packets of data. What is the best way to do this?...
3
by: Rotsey | last post by:
Hi, I am writing a game that I want to net enable. So I want to be able to connect to peers over the internet. I will be sending very small packets of data. What is the best way to do this?...
1
by: =?Utf-8?B?RWl0YW4=?= | last post by:
Hello, I am writing a WinForm application that will broadcast a UDP datagram to multiple of embedded controllers. The controllers in return will send a response to the WinForm application. ...
1
luckysanj
by: luckysanj | last post by:
Dear Sir, Can you give me idea about Live Radio Broadcasting. I want to implement the Live Radio Broadcasting link on my web page to play radio on live. So i need basic php code for this. Your...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.