C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 10-14-2008, 06:20 PM   #1
Kevin
 
kevinawad's Avatar
 
Join Date: Nov 2006
Posts: 193
DirectPlay or Winsock?

What would be more suitable for games? Winsock or Directplay?

Im talking about Massive multiplayer online role playing games.

Thank you.
__________________
~kevinawad~
kevinawad is offline   Reply With Quote
Old 10-14-2008, 11:12 PM   #2
Registered User
 
Join Date: Nov 2005
Posts: 634
I would be willing to bet DirectPlay. http://en.wikipedia.org/wiki/DirectPlay
Raigne is offline   Reply With Quote
Old 10-14-2008, 11:36 PM   #3
Malum in se
 
abachler's Avatar
 
Join Date: Apr 2007
Posts: 3,188
DirectPlay is a bit outdated. For small games it woudl be fine, but im willing to bet that MMO's use wither winsock or an MFC class.
__________________
Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.
abachler is offline   Reply With Quote
Old 10-18-2008, 07:59 PM   #4
Registered User
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 217
From gamedev.net:

Quote:
Q2) Should I use DirectPlay or WinSock?
A2) As of Summer Update 2004, Microsoft has put DirectPlay into "sunset" mode, where they will not develop the API further. Microsoft now recommends you use WinSock for networking, until the re-cast X-box Live! technology is rolled out for PCs, probably around Longhorn time-frame. If you're on Linux, MacOS, or some other platform like that, life is easier: you only have regular sockets to work with. Luckily, sockets and WinSock code can look very similar if you stick to the Berkeley sockets functions of WinSock, and avoid WSA functions; you can write quite portable programs with a little bit of thought.

Remember to include <winsock2.h> before including <windows.h> in your win32 program, or compile errors will ensue. Also, always start your WinSock program with WSAStartup( MAKEWORD(2,2), ... ) to get version 2.2 of WinSock, as the older versions have bugs and limitations that you don't want to deal with. Finally, you need to link with ws2_32.lib on Win32 when using WinSock.
39ster is offline   Reply With Quote
Old 10-20-2008, 06:27 PM   #5
Banned
 
master5001's Avatar
 
Join Date: Aug 2001
Location: Visalia, CA, USA
Posts: 3,699
Winsock.

And bump.
master5001 is offline   Reply With Quote
Old 10-20-2008, 07:12 PM   #6
Super Moderator
 
Bubba's Avatar
 
Join Date: Aug 2001
Posts: 7,812
Winsock for sure. DirectPlay is dead.
__________________
If you aim at everything you will hit something but you won't know what it is.
Bubba is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Winsock issues tjpanda Windows Programming 3 12-04-2008 08:32 AM
Winsock Messaging Program Morgul Windows Programming 13 04-25-2005 04:00 PM
Where do I initialize Winsock and catch messages for it? Lithorien Windows Programming 10 12-30-2004 12:11 PM
Winsock Problem Noxir C++ Programming 4 07-18-2004 10:50 AM
winsock pode Networking/Device Communication 2 09-26-2003 12:45 AM


All times are GMT -6. The time now is 02:25 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22