Package pysynphot :: Module server
[hide private]
[frames] | no frames]

Module server

source code

This module contains the machinery necessary to run a server. At present it is an ETC-specific server, but the ETC functionality is encapsulated in a single method of the QueuManager.

The server will connect to the port specified in the environment variable PYSYN_PORT. If this variable is not set, it will use the default_port specified below.

Use the startServer() function to start the server. This is done automatically if __name__ == '__main__'.

Classes [hide private]
  RequestHandler
  QueueManager
  ServerDispatcher
Functions [hide private]
 
startServer() source code
Variables [hide private]
  debug = 1
  default_port = 8881