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

Module PyFoam.Execution.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

Variable Summary
_Environ environ = {'WM_SHELL': 'bash', 'WM_MPLIB': 'OPENMPI', 'W...

Imported modules:
sys
Imported classes:
RingBuffer, SimpleXMLRPCServer, Thread
Imported functions:
config, foamMPI, freeServerPort, getPathFromEnviron, Lock, time, uname, versionString
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

Variable Details

environ

Type:
_Environ
Value:
{'WM_SHELL': 'bash', 'WM_MPLIB': 'OPENMPI', 'WM_DECOMP_LIBS': '-lfaceD\
ecompFiniteElement', 'WM_COMPILER_ARCH': '', 'OPENMPI_VERSION': 'prein\
stalled', 'FOAM_LIB': '/home/bgschaid/OpenFOAM/OpenFOAM-1.3/lib', 'SHE\
LL': '/bin/sh', 'WM_OPTIONS': 'linuxAMD64Gcc4DPOpt', 'HISTSIZE': '1000\
', 'SOURCE': '() {  foamDotFile=$1;\n . $1;\n foamDotFile=\n}', 'FOAM_\
MPI_LIBBIN': '/home/bgschaid/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4D\
POpt/openmpi-preinstalled', 'MANPATH': '/opt/gridengine/man:/opt/gride\
ngine/man:/usr/java/jdk1.5.0_09//man:/usr/kerberos/man:/usr/local/shar\
...                                                                    

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