spellcast.server
Class Server
java.lang.Object
spellcast.server.Server
public class Server
- extends java.lang.Object
The Server class for Spellcast. This is a singleton class, to create instances
use createServer
.
- Author:
- Barrie Treloar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createServer
public static Server createServer(java.net.InetAddress bindAddress,
int port,
java.lang.String gameName)
throws ServerException
- Throws:
ServerException
getServer
public static Server getServer()
init
public void init(java.lang.String gameName)
start
public void start()
throws ServerException
- Throws:
ServerException
stop
public void stop()
- Stop the server. This is not a graceful shutdown.
getBindAddress
public java.net.InetAddress getBindAddress()
- Returns:
- Returns the bindAddress.
getConnectionStatus
public ConnectionStatus getConnectionStatus()
- Returns:
- Returns the connectionStatus.
getPort
public int getPort()
- Returns:
- Returns the port.
getGameServer
public Game_Server getGameServer()
- Returns:
- Returns the gameServer.
getProgramVersionDetails
public VersionDetails getProgramVersionDetails()
- Returns:
- Returns the programVersionDetails.
Copyright © 2001-2005 Spellcast. All Rights Reserved.