Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

throbG

webservices for games

This topic is 5990 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, Sorry if this has been asked before but I couldnt get Search to work. I''m about to start looking at DirectPlay as I have an interest in multiplayer gaming., and intend to start off with this familiar environment. I''ve noticed that in the Visual C++ .NET area in GotDotNet there are several samples which demonstrate networked games which use .net web services to communicate. I haven''t downloaded them yet but can anybody tell me if webservices (on any platform) will take over from directplay for this purpose. I''ve a feeling that because webservices work over HTTP rather than at the TCP layer they will be a bit too slow for games. Or am I completely wrong? Thanks, John

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
You are correct for at least 2 reasons...
HTTP uses TCP rather than UDP and UDP is generally used for real-time games.
HTTP requires extra data to be sent, and usually when developing the multiplayer side of a game you want to send as little data over the network as you can to accomplish your task.
I think using webservices for games would be most useful for board games, card games etc. that you might play through a webpage.

Share this post


Link to post
Share on other sites
The other thing is that each request/call to a web service requires that a socket connection be initialized. The connection isn''t maintained across calls.

Basically, there''s a bit too much overhead to use it for realtime stuff, but I can see implementing high-score functions as a web service as being a good idea.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!