|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.engine.networking.server.VoogaServer
public class VoogaServer
This class should be running on the server constantly to ensure that games that use the networking API have connection to the server at all times. Makes and starts the VoogaDaemon for each game that uses the networking API.
Constructor Summary | |
---|---|
VoogaServer()
|
Method Summary | |
---|---|
static int |
getChatPort(java.lang.String gameName)
Static method to return the port that the chat is run on. |
static int |
getGamePort(java.lang.String gameName)
Static method to return the port that the game is run on. |
static void |
main(java.lang.String[] args)
Main method iterates through the list of games in the XML file and runs them on the specified port with the specified ClientHandler subclass. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VoogaServer()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static int getGamePort(java.lang.String gameName)
gameName
- the name of the game whose port you want to find
public static int getChatPort(java.lang.String gameName)
gameName
- the name of the game whose chat port you want to find
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |