Java Network Game Programming

game server responsibility:

  1. Initialize the server socke;
  2. Wait for a client to connect;
  3. Accept the client connection;
  4. Create a daemon thread to support the clien;
  5. Go back to step 2.

 

 

game daemon responsibility:

  • Accept client player connection;
  • Pair up players to form separate game;
  • Manage the flow of the game;
  • Communicate each player's move to the other player;
  • Notify the players of the state of the game.

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章