Results 1 to 8 of 8

Thread: directplay vs. winsock

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    Canada
    Posts
    69

    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.

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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)

  3. #3
    Zaei
    Guest
    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.

  4. #4
    Zaei
    Guest
    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.

  5. #5
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448
    Isn't that what all controls are?

  6. #6
    Zaei
    Guest
    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.

  7. #7
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448
    Yeah, I knew I should've stated that more carefully. I meant the VB controls. Mr. Timer Mr. Picture Box, etc.

  8. #8
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    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
  •  



Click Here to Expand Forum to Full Width