Archived

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

WinSock2 vs DirectPlay

This topic is 5143 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

I whant to use one of these two in a network game. Only i don''t know wich one to use. Can anybody tell my the pro''s and con''s between those two methods ?

Share this post


Link to post
Share on other sites
winsock2

pros:
- portable
- low level API = freedom

cons:
- takes longer to get network library up and running
- if done wrong, can become a bottleneck

DirectPlay

pros:
- supports many protocols and connection methods (although most are useless)
- supposedly easy to learn (???)
- supposedly efficient (???)

cons:
- not portable
- no low level access

Share this post


Link to post
Share on other sites
Also with direct play you get voice support, and the masochistic fun that is thrown in for free when using anything related to COM (this applies to all of directx really)

Share this post


Link to post
Share on other sites