Class rpc

Conveniently interact with a remote server

Declaration

class rpc
source link

Documentation

>>> remote = rpc(address)  # doctest: +SKIP
>>> response = yield remote.add(x=10, y=20)  # doctest: +SKIP

One rpc object can be reused for several interactions.
Additionally, this object creates and destroys many comms as necessary
and so is safe to use in multiple overlapping communications.

When done, close comms explicitly.

>>> remote.close_comms()  # doctest: +SKIP

Methods

Reexports