Package PyFoam :: Package Infrastructure :: Module FoamServer
[show private | hide private]
[frames | no frames]

Module PyFoam.Infrastructure.FoamServer

A XMLRPC-Server that answeres about the current state of a Foam-Run
Classes
FoamAnswerer The class that handles the actual requests (only needed to hide the Thread-methods from the world
FoamServer This is the class that serves the requests about the FOAM-Run

Function Summary
  findFreePort()
Finds a free server port on this machine and returns it

Imported modules:
posixpath (as path), socket, sys
Imported classes:
ParameterFile, RingBuffer, ServerProxy, SimpleXMLRPCServer, Thread
Imported functions:
config, extract_tb, foamLogger, foamMPI, freeServerPort, getPathFromEnviron, getpid, Lock, time, Timer, uname, userName, versionString
Imported variables:
environ
Function Details

findFreePort()

Finds a free server port on this machine and returns it

Valid server ports are in the range 18000 upward (the function tries to find the lowest possible port number

ATTENTION: this part may introduce race conditions

Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 http://epydoc.sf.net