Yar

Sign in to follow this  
  • entries
    208
  • comments
    383
  • views
    65547

Networking busted.... but new version soon.

Sign in to follow this  
H_o_p_s

87 views

For some reason my client server pair was working on the local host, and not working across the net.... So I started to rewrite... maybe I was doing something wrong.

So let us say that there are four players. Each computer runs a server. The server is there to process commands from other computers. Now my server is not threaded this time, so one connection at a time is allowed. This is okay because this is a turn based game. So if its player1's turn, player 2,3, and 4 are only recieving information from player1.

So we have two modes: Provider and Requester. In provider mode we don't have any client requests going out, it is in listening mode. Then once the Provider mode is let know that it is that player's turn it switches to Requester Mode which allows for everything done in that player's game be changing everyone elses.

The first thing that I'll get done is a chat requester. And I'll tie this in with the msgbox example that I have below.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now