Thread: Multiplayer

  1. #1
    Registered User Ajsan's Avatar
    Join Date
    Dec 2003
    Posts
    55

    Multiplayer

    Hey everyone its been a while but thats okay....

    i want to port my game that i've made so that its multiplayer for one and the 2 so that its over a network. i know that there is a networking board and i will be posting there to but i would like to know how i could set up the code so that there could be more than one person playing in the same game

    any hints or suggestions would be help full.... thx in advance...



    Ajsan
    Style is overrated.

    - —₽‚¢‰Î -

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Look into multi threading. Have on thread that waits for people to connect and then launches the other threads that load the data and process the information.

  3. #3
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    You could also use one of the asyncronous facilities Win32 provides, such as completion ports, completion routines, WSAAsyncSelect WSAEventSelect, GetOverlappedResult. Look them up on MSDN, it should get you started. Additionally, take a look at http://users.hfx.eastlink.ca/~ebrook...verlapped.html

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need book to program game into multiplayer...
    By edomingox in forum Game Programming
    Replies: 3
    Last Post: 10-02-2008, 09:26 AM
  2. Multiplayer
    By Ajsan in forum C++ Programming
    Replies: 3
    Last Post: 06-11-2004, 12:21 AM
  3. looking for a new shooter to play (multiplayer one)
    By Leeman_s in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 01-12-2004, 01:12 PM
  4. Multiplayer OpenGL
    By Bonkers in forum Game Programming
    Replies: 5
    Last Post: 01-06-2003, 10:01 PM
  5. multiplayer
    By phantom in forum Game Programming
    Replies: 2
    Last Post: 03-29-2002, 03:08 AM