multiprocessing.managers.BaseManager.get_server()

get_server()

Returns a Server object which represents the actual server under the control of the Manager. The Server object supports the serve_forever() method:

>>> from multiprocessing.managers import BaseManager
>>> manager = BaseManager(address=('', 50000), authkey=b'abc')
>>> server = manager.get_server()
>>> server.serve_forever()

Server additionally has an address attribute.

doc_python
2016-10-07 17:37:44
Comments
Leave a Comment

Please login to continue.