Class Backend
A communication backend, selected by a given URI scheme (e.g. 'tcp').
Declaration
class Backend(ABC)
source linkDocumentation
Methods
▶ def get_address_host(self, loc) @abstractmethod Get a host name (normally an IP address) identifying the host the address is located on. *loc* is a scheme-less address.
@abstractmethod
def get_address_host(
self,
loc,
)
Overrides
This method is overriden in:
▶ def get_address_host_port(self, loc) Get the (host, port) tuple of the scheme-less address *loc*. This should only be implemented by IP-based transports.
Overrides
This method is overriden in:
▶ def get_connector(self) @abstractmethod Get a connector object usable for connecting to addresses.
@abstractmethod
def get_connector(self)
Overrides
This method is overriden in:
▶ def get_listener(self, loc, handle_comm, deserialize, **connection_args) @abstractmethod Get a listener object for the scheme-less address *loc*.
@abstractmethod
def get_listener(
self,
loc,
handle_comm,
deserialize,
**connection_args,
)
Overrides
This method is overriden in:
▶ def get_local_address_for(self, loc) @abstractmethod Get the local listening address suitable for reaching *loc*.
@abstractmethod
def get_local_address_for(
self,
loc,
)
Overrides
This method is overriden in:
▶ def resolve_address(self, loc) @abstractmethod Resolve the address into a canonical form. *loc* is a scheme-less address.
@abstractmethod
def resolve_address(
self,
loc,
)
Simple implementations may return *loc* unchanged.
Overrides
This method is overriden in:
Subclasses
Reexports