Jump to content
  • Advertisement

Archived

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

Salec

Dplay 8 vs. custom tcp/ip or udp

This topic is 6151 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, I am just curious as to what would be the better path to take? Should I use DirectPlay 8 or write my own custom routine using tcp/ip or udp? This is for an engine that my group is creating. This engine can be used in a wide variety of ways. This engine is not focused for just role playing games or first person shooters..or even games for that matter. It would help alot if someone could list the pros and cons of using dplay vs using something else. This engine is not just for windows also. It will be ported to many other Operating systems and even game consoles. Thanks alot -Salec

Share this post


Link to post
Share on other sites
Advertisement
If you are going to be porting your code to other platforms including consoles then the answer to your question is pretty clear. Use tcp/udp since this is a cross platform API. If you use directplay then you are stuck to windows and the directx api.

henry

Share this post


Link to post
Share on other sites
Thats pretty much what I figured. Do you know where I can get some more information on UDP and creating a protocol similar to it? It seems everywhere I look, there is only information on tcp/ip.

Thanks alot

-Salec

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
what about if you are only sticking to windows? Is it better to use Dplay or your own custom? What would be the pros and cons?

Share this post


Link to post
Share on other sites
Um, why are you wanting to use UDP? I thought they were unreliable? At least that is the impression I get from all these Winsock tutorials. Why don''t you use TCP, stream sockets, or is that only for internet? (Well, it makes sense that TCP/IP is for internet, IP meaning internet protocol, but is there anything else that is TCP...as in TCP/___?)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
this was an older thread. I just wanted to know what was better for network code for windows. (for tcp or udp) Is it better to use dplay or your own custom code?

Share this post


Link to post
Share on other sites
UDP is part of TCP/IP. TCP, UDP, & ICMP are protocols (among others) within the TCP/IP suite.

DirectPlay offers a priority queue, UDP based, selectably garuanteed packet delivery. It also lets you make your game ''lobbable'' for use on things like GameSpy (not that they likely to add your game to their list).

If your porting I won''t consider DP. It''d be more trouble than it''s worth.

Magmai Kai Holmlor
- Not For Rent

Share this post


Link to post
Share on other sites
If i were you i''d go the hard way and do it TCP and/or UDP. Its just much more fun than Dplay. You''ll learn alot of basics that will help you if you later on want to try Dplay instead.

Share this post


Link to post
Share on other sites
Taile,

You would use UDP because it will be far faster than TCP. The guaranteed nature of TCP makes it much slower by comparison. Also, even on Windows, I would avoid DP and go for a custom Winsock library. Consider the advantages of IOCP and other new features of Win32. These features don''t scale well to UNIX platforms, but there are some tweeks that allow similar performance. Your code will not be portable either way.

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!