class documentation
class IPCServer(socketserver.TCPServer): (source)
Constructor: IPCServer(on_message)
Server that listens for inter-process messages.
Messages are exchanged as pickle-encoded objects.
Class Method | run |
Convenience wrapper that creates a new server instance and calls serve_forever in a background thread. |
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Constructs (but does not start) a server. |
Method | serve |
Handles one request at a time until the server shuts down. |
Method | stop |
Stops and shuts down the server. |
Class Variable | timeout |
Undocumented |
Instance Variable | on |
Undocumented |
Property | port |
Undocumented |
Instance Variable | __in |
Undocumented |
Instance Variable | __lock |
Undocumented |
Convenience wrapper that creates a new server instance and calls serve_forever in a background thread.
The server will be listening before this function returns.
Returns | |
the IPCServer instance |
Constructs (but does not start) a server.
Parameters | |
onfunction | callback that takes a single argument (any Python object sent by a client) and returns an object in response |
Handles one request at a time until the server shuts down.
This is a simple wrapper around TCPServer.serve_forever that keeps track of whether it was called.