newbie in network application
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.
Just my thought.
Super Sportmatchen - A retro multiplayer competitive sports game project!
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
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
Yeah, go winsock, especially for something small like this.
___________________________
Freeware development:
ruinedsoft.com
___________________________
Freeware development:
ruinedsoft.com
___________________________Freeware development:ruinedsoft.com
October 04, 2002 09:24 PM
There is no reason to disable the nagle algorithm for a turn-based game.
October 05, 2002 03:45 AM
If you''re worried about a delay in sending packets you shouldn''t be using TCP.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement