Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Computer Forums > Software Programming
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

Software Programming Software programming talk, ask questions about computer software programming or help others

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 06-12-2007, 9:45 PM   #1
gappy
 
gappy's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Directplay or Winsock?

I'm about to venture into multiplayer gaming.

Should I use Directplay or go for winsock?

I've had a brief brush with winsock (to post scores to a http server) but
never tried to retrieve with it.

Is directplay better for games?


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 06-12-2007, 9:45 PM   #2
Ultimate Buu
 
Ultimate Buu's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Directplay or Winsock?


"gappy" <fake@email.com> wrote in message
news:3f512228$0$46015$65c69314@mercury.nildram.net ...
> I'm about to venture into multiplayer gaming.
>
> Should I use Directplay or go for winsock?
>
> I've had a brief brush with winsock (to post scores to a http server) but
> never tried to retrieve with it.
>
> Is directplay better for games?
>


DirectPlay has some built-in features which makes it slightly easier to use
as you don't have to start from scratch.

OTOH, Winsock (sockets) is universal (i.e. it works on other platforms such
as Linux) and more flexible.


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 06-12-2007, 9:45 PM   #3
gappy
 
gappy's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Directplay or Winsock?

if i made my client using directplay - would the server have to be windows?


"Ultimate Buu" <majjinbuu@dragonball.z> wrote in message
news:3f51ef97$0$144$1b62eedf@news.wanadoo.nl...
>
> "gappy" <fake@email.com> wrote in message
> news:3f512228$0$46015$65c69314@mercury.nildram.net ...
> > I'm about to venture into multiplayer gaming.
> >
> > Should I use Directplay or go for winsock?
> >
> > I've had a brief brush with winsock (to post scores to a http server)

but
> > never tried to retrieve with it.
> >
> > Is directplay better for games?
> >

>
> DirectPlay has some built-in features which makes it slightly easier to

use
> as you don't have to start from scratch.
>
> OTOH, Winsock (sockets) is universal (i.e. it works on other platforms

such
> as Linux) and more flexible.
>
>



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 06-12-2007, 9:45 PM   #4
Ultimate Buu
 
Ultimate Buu's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Directplay or Winsock?


"gappy" <fake@email.com> wrote in message
news:3f51f33c$0$46004$65c69314@mercury.nildram.net ...
> if i made my client using directplay - would the server have to be

windows?
>
>


In theory no. But in practice yes, since the protocols used are proprietary.
At the very least you'll have to reverse-engineer them. If you want to use a
non-Windows server just use sockets.


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 06-12-2007, 9:45 PM   #5
Frecklefoot
 
Frecklefoot's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Directplay or Winsock?

"gappy" <fake@email.com> wrote in message news:<3f512228$0$46015$65c69314@mercury.nildram.ne t>...
> Should I use Directplay or go for winsock?


IIRC, DirectPlay uses Winsock. It just adds a layer that is supposed
to make the n/w programming easier. But a friend of mine (used to
write Internet s/w for Cisco) who writes n/w code for games says that
its poorly written. He always writes his n/w-ing code from scratch
using sockets. But then, he understands it pretty thoroughly. He
doesn't recommend it for someone who doesn't have a good grasp of
sockets & related programming. But then he doesn't recommend use of
DirectPlay at all...

Perhaps write some test apps using each approach and see which you
like better. Don't start the n/w game until after you have an
infrastructure you feel comfortable with...
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 06-12-2007, 9:45 PM   #6
Ultimate Buu
 
Ultimate Buu's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Directplay or Winsock?


"Frecklefoot" <chris@bucketobits.com> wrote in message
news:dfd57bb5.0309020528.3670e974@posting.google.c om...
> "gappy" <fake@email.com> wrote in message

news:<3f512228$0$46015$65c69314@mercury.nildram.ne t>...
> > Should I use Directplay or go for winsock?

>
> IIRC, DirectPlay uses Winsock. It just adds a layer that is supposed
> to make the n/w programming easier. But a friend of mine (used to
> write Internet s/w for Cisco) who writes n/w code for games says that
> its poorly written. He always writes his n/w-ing code from scratch
> using sockets. But then, he understands it pretty thoroughly. He
> doesn't recommend it for someone who doesn't have a good grasp of
> sockets & related programming. But then he doesn't recommend use of
> DirectPlay at all...
>
> Perhaps write some test apps using each approach and see which you
> like better. Don't start the n/w game until after you have an
> infrastructure you feel comfortable with...


Sockets aren't that difficult. It's just a communications channel and you
can send anything you wish over it. You'll have to devise your own protocol,
though. Take a look for example at the source code of BZFlag
(http://www.bzflag.org) to get a feel for it.


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 06-12-2007, 9:47 PM   #7
Eternal Vigilance
 
Eternal Vigilance's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Directplay or Winsock?






Frecklefoot wrote:

> "gappy" <fake@email.com> wrote in message news:<3f512228$0$46015$65c69314@mercury.nildram.ne t>...
> > Should I use Directplay or go for winsock?

>
> IIRC, DirectPlay uses Winsock. It just adds a layer that is supposed
> to make the n/w programming easier. But a friend of mine (used to
> write Internet s/w for Cisco) who writes n/w code for games says that
> its poorly written. He always writes his n/w-ing code from scratch
> using sockets. But then, he understands it pretty thoroughly. He
> doesn't recommend it for someone who doesn't have a good grasp of
> sockets & related programming. But then he doesn't recommend use of
> DirectPlay at all...


I played around with the sample game in the DirectX SDK and was apalled at the delay even
when connected across an empty 100bT LAN (Was doing my own UDP protocol anyway but wanted to
see what Microsoft had come up with).
The DirectPlay would probably be easy for a newbie to get the functionality working (cloning the
samples ) but you always have to wonder if your being given the hamstrung version (like MS usually
does).




>
>
> Perhaps write some test apps using each approach and see which you
> like better. Don't start the n/w game until after you have an
> infrastructure you feel comfortable with...


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
DirectPlay and guarenteed messages Lasse Skyum Software Programming 0 06-12-2007 9:39 PM


Featured Websites




All times are GMT +1. The time now is 12:32 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98