b.s.server : module documentation

Part of bzrlib.smart

Server for smart-server protocol.
Class SmartTCPServer Listens on a TCP socket and accepts connections from smart clients.
Class SmartServerHooks Hooks for the smart server.
Class BzrServerFactory Helper class for serve_bzr.
Function serve_bzr This is the default implementation of 'bzr serve'.
Function _local_path_for_transport Return a local path for transport, if reasonably possible.
def _local_path_for_transport(transport):
Return a local path for transport, if reasonably possible.

This function works even if transport's url has a "readonly+" prefix, unlike local_path_from_url.

This essentially recovers the --directory argument the user passed to "bzr serve" from the transport passed to serve_bzr.

def serve_bzr(transport, host=None, port=None, inet=False, timeout=None):
This is the default implementation of 'bzr serve'.

It creates a TCP or pipe smart server on 'transport, and runs it. The transport will be decorated with a chroot and pathfilter (using os.path.expanduser).

API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.