Advertisement

newbie in network application

Started by October 04, 2002 08:19 AM
12 comments, last by zip7000 22 years, 3 months ago
hello, I would like to create a chess game where two players could play via internet. I have no knowledge in network. Is someone could give some advice. where should I start? Is it a good idea to start with directPlay? Thank you for your advice!!! zip7000
I think you should start learning Winsock before going into DirectPlay. And when you understand Winsock go make some chatprogram. And make sure you''ve done a single player chess game (the AI doesn''t need to be state of the art) and then make your chess game.

Just my thought.

@mikaelbauer

Super Sportmatchen - A retro multiplayer competitive sports game project!

Advertisement
try winsockets

1)
WSAStartUp()
socket()
bind()
2)
a)
listen()
accept()
b)
send()
3)
closesocket()

(Did i miss something?)

Simple, isnt it?
Source you can find almost everywhere. (in articles about networking look at non-blocking server)

PS. Use TCP_NODELAY - it disables Nagle algorithm
sorry, i miss something
2)
a)-is for server

...
revc()
b)-is for client
Yeah, go winsock, especially for something small like this.

___________________________
Freeware development:
ruinedsoft.com
___________________________Freeware development:ruinedsoft.com
There is no reason to disable the nagle algorithm for a turn-based game.
Advertisement
TCP_NODELAY = no delay sending packets
If you''re worried about a delay in sending packets you shouldn''t be using TCP.
ok

thank you. Dou u know a good winsock tutorial not too old?

zip7000
No tutorial but a good FAQ:
http://tangentsoft.net/wskfaq/

Gero

This topic is closed to new replies.

Advertisement