PyFoam.Infrastructure.ServerBase module

Basis for the XMLRPC-Servers in PyFoam

Based on 15.5 in “Python Cookbook” for faster restarting

class PyFoam.Infrastructure.ServerBase.ServerBase(addr, logRequests=False)[source]

Bases: xmlrpc.server.SimpleXMLRPCServer

The Base class for the servers

__init__(addr, logRequests=False)[source]
Parameters:
  • addr – the (server address,port)-tuple)
  • logRequests – patched thru to the base class
__module__ = 'PyFoam.Infrastructure.ServerBase'
server_bind()[source]

Should allow a fast restart after the server was killed

verify_request(request, client_addr)[source]

To be overriden later