|
-
Nov 27th, 2001, 11:40 AM
#1
Thread Starter
Lively Member
directplay vs. winsock
I have been designing an online game. Winsock works great because I can send data, messages or whatever, and make the recieving game react. But I think that I should be using directplay. I don't know directplay very well, and my question is should I switch, why, and if what I am doing works, why should I change.
-
Nov 27th, 2001, 03:47 PM
#2
Good Ol' Platypus
I'm not sure if this is true, but directplay may be faster. Also, it won't bulk up your game (requires DX to be installed, not the Winsock OCX). It also makes it easier to make a lobby-like interface similar to that found on MSN's Gaming Zone.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Nov 27th, 2001, 03:57 PM
#3
DirectPlay has many of the interfaces you might end up using already implemented (Lobbies are a good example). Using WinSock, you will end up having to write all of this yourself.
Otherwise, there is very little difference between the two. I believe that DPlay uses UDP, because the packets dont have to be verified and possibly resubmitted (this causes a major slowdown in TCP/IP. Most games use UDP, because it is fast). Both allow Multi-Casting (leading edge Multiplayer technology that involves using a sever's ISP to send a single packet sent from the server to a group of IP addresses. Some ISP dont support this yet). Anything you can do with one, I would say that you can do with another.
The decision you need to make is if you really need the extra interfaces DPlay makes availible.
Z.
-
Nov 27th, 2001, 03:58 PM
#4
Oh, and Id just like to point out that, like the Timer Control, and The INet control, the WinSock OCX is simply a COM wrapper around a set of API calls.
Z.
-
Nov 28th, 2001, 10:09 AM
#5
Hyperactive Member
Isn't that what all controls are?
-
Nov 28th, 2001, 03:31 PM
#6
They dont have to be. Many controls released by 3rd party companies are thier own product, not just a wrapper. The Internet Explorer Browser control is also a good example of a control that is more thena wrapper.
Z.
-
Nov 28th, 2001, 03:36 PM
#7
Hyperactive Member
Yeah, I knew I should've stated that more carefully. I meant the VB controls. Mr. Timer Mr. Picture Box, etc.
-
Nov 30th, 2001, 08:20 AM
#8
PowerPoster
Code:
Mr. Timer Mr. Picture Box, etc.
*loooool*
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|