Establishing a server-client connection for a multiplayer game

Posted on 2009-04-28
Last Modified: 2013-11-17
I am trying to create a chess-like two-person multiplayer game using CodeGear C++. I need some guidance on how to create a connection between the two persons(using the internet). One person will be the server (which will be able to change the properties of the game) and the other one the client. What is the easiest and safest way to establish such a connection and what documentation should I look for?

Thanks a lot.
Question by:Chrysaor
    LVL 16

    Expert Comment

    by:George Tokas
    >>and what documentation should I look for?
    This is a large issue...
    As for documentation:
    January and February issues have articles about that...
    Older versions of BCB had a chat directory under examples folder and it is a good starting point...
    BUT you are forgetting ONE MORE thing...
    The server machine has to have a known IP (there are ways)...
    The internet connection has to forward the server listening port from router to machine...

    George Tokas.

    Author Comment

    Some free documentation? :) I've searched the net but I didn't found anything .. Not even the chat example you've mentioned.. Basically I don't know where to start.. I know how to program my game (for a single computer) but I have no idea how to create a multiplayer game..
    LVL 16

    Accepted Solution

    C++ Builder 3, 4, 5 Unleashed
    C++ Builder 5, 6 Developers Guide

    Check them out!

    George Tokas.

    P.S. You can't imagine the trouble I had find documentation....:-(

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
    Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now