PyFoam.Infrastructure.ServerBase module
Basis for the XMLRPC-Servers in PyFoam
Based on 15.5 in “Python Cookbook” for faster restarting
SSL-handling lifted from
http://blogs.blumetech.com/blumetechs-tech-blog/2011/06/python-xmlrpc-server-with-ssl-and-authentication.html
-
class
PyFoam.Infrastructure.ServerBase.ServerBase(addr, useSSL=False, logRequests=False, allow_none=False, encoding=None)[source]
Bases: xmlrpc.server.SimpleXMLRPCServer
The Base class for the servers
-
server_bind()[source]
Should allow a fast restart after the server was killed
-
verify_request(request, client_addr)[source]
To be overriden later
-
PyFoam.Infrastructure.ServerBase.getServerProxy(host, port, useSSL=None)[source]
Get a proxy to a server. If the useSSL-parameter is unset then it
tries to automatically get the most secure connection