netGameManager
Class GameServer

java.lang.Object
  extended by netGameManager.GameServer

public class GameServer
extends java.lang.Object

This class is responsible for manage several intances of Game. It opens a TCP port to comunicate with players (GameClient)

Version:
0.5 beta - 03/15/2006
Author:
Luciano Antonio Digiampietri
See Also:
GameClient, Game

Field Summary
static int ECHO_PORT
          Default port on which to provide TCP and UDP echo services.
 
Constructor Summary
GameServer()
          Create a DualServer object to offer echo service on TCP and UDP ports on the default IP address.
GameServer(int port)
           
 
Method Summary
static AnswerMessage executeRequest(RequestMessage req_message)
           
static void main(java.lang.String[] args)
          Test main - test out the echo server on its default port, or on a port specified by args[0].
 void start()
           
 void startEchoService()
          Start up this echo service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ECHO_PORT

public static int ECHO_PORT
Default port on which to provide TCP and UDP echo services. This is not final, so a caller could change it to provide echo services on a different port.

Constructor Detail

GameServer

public GameServer()
Create a DualServer object to offer echo service on TCP and UDP ports on the default IP address.


GameServer

public GameServer(int port)
Method Detail

startEchoService

public void startEchoService()
Start up this echo service.


executeRequest

public static AnswerMessage executeRequest(RequestMessage req_message)

start

public void start()

main

public static void main(java.lang.String[] args)
Test main - test out the echo server on its default port, or on a port specified by args[0].