Module FoamServer
source code
A XMLRPC-Server that answeres about the current state of a
Foam-Run
|
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
|
Imports:
ServerBase,
ServerProxy,
config,
versionString,
RingBuffer,
freeServerPort,
foamLogger,
foamMPI,
ParameterFile,
userName,
Lock,
Thread,
Timer,
time,
environ,
uname,
path,
getpid,
socket,
sys,
string,
extract_tb
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
|