1. Andrew
  2. pyShipCommand

Commits

Andrew  committed d56ccd8

Initial documentation of main Server Script.

Script usage and arguments still needed to be added.

  • Participants
  • Parent commits 9d27a6c
  • Branches comments

Comments (0)

Files changed (1)

File pyshipcommand/server.py

View file
+""" pyShipCommand Server Main
+
+Main Entry Point into the pyShipCommand Server that initializes all the
+Game Managers and starts the update loop.
+
+All Global Game Managers need to be initialized and registered with the
+zope.component system to allow for singleton access from all other scripts.
+"""
+
 # Twisted Framework
 from zope.component import getGlobalSiteManager
 from zope.interface import implements
 from twisted.spread.pb import PBServerFactory
 from twisted.internet.error import CannotListenError
 
-# PyCommand
+# pyShipCommand
 from scripts import ScriptMgr
 from players import PlayerManager
 from universe import Universe
 # used in the function main() below as part of the default arguments
 import sys
 
+# Server Exit Status
 SERVER_EXIT_OK = 0
 SERVER_EXIT_UNKNOWN = 1
 SERVER_EXIT_ADDRESS_IN_USE = 2
 DEFAULT_INTERFACE = ""
 DEFAULT_PORT = 12345
 SERVER_UPDATE_INT = 10.0 #seconds
-
-# CONSTANTS
 SERVER_INDEX_MOD = 12345
 
 class InitializeError(Exception): pass