circuits.core.bridge module


The Bridge Component is used for inter-process communications between processes. Bridge is used internally when a Component is started in “process mode” via circuits.core.manager.start(). Typically a Pipe is used as the socket transport between two sides of a Bridge (there must be a :class:`~Bridge` instnace on both sides).

class circuits.core.bridge.Bridge(*args, **kwargs)

Bases: circuits.core.components.BaseComponent

initializes x; see x.__class__.__doc__ for signature

channel = 'bridge'
ignore = ['registered', 'unregistered', 'started', 'stopped', 'error', 'value_changed', 'generate_events', 'read', 'write', 'close', 'connected', 'connect', 'disconnect', 'disconnected', '_read', '_write', 'ready', 'read_value_changed', 'prepare_unregister']
init(socket, channel='bridge')
send(eid, event)

Previous topic

circuits.core.workers module

Next topic

circuits.core.components module

This Page