Results 1 to 2 of 2
  1. #1
    KingOfClubs is offline Member
    Join Date
    Apr 2011
    Rep Power

    Default Multi client server guidance

    Hi guys,
    I've started developing an on-line poker application as my final project at uni and I need some basic guidance as I can't get my head around some stuff :) I have some ideas, but i'm not sure how good they are and would appreciate ANY feedback
    How would you go about the client-server communication?

    I'll created a separate thread for each client that is connected to the server, but what happens when the clients try to connect to the same table ??
    This will start a separate thread on each client but what about the server? How do i get each client to see whta the other are doing?

  2. #2
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Atlanta, Georgia, US
    Rep Power


    There are many ways to go about this. Since a Table object is only shared by a few Client's, I suggest having a Table manager class, let's call it TableManager. When the Client wants to connect to a table, it asks the TableManager for that Table using ID's. Then just store that Table object in the Client object.

    Java Code:
    Table table = manager.getTable(1234);

Similar Threads

  1. Replies: 2
    Last Post: 09-24-2010, 12:31 PM
  2. Replies: 3
    Last Post: 01-29-2010, 07:53 AM
  3. Multi-user chat server and client
    By 435.mahesh in forum Java Software
    Replies: 6
    Last Post: 04-25-2009, 01:45 AM
  4. Multi Client/Server Chat Question
    By Kodak07 in forum Networking
    Replies: 3
    Last Post: 03-29-2009, 11:50 PM
  5. Multi Client TCP or UDP
    By hunterbdb in forum Networking
    Replies: 8
    Last Post: 10-17-2008, 05:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts