bpod_core.ipc

Inter-process Communication, service discovery and related.

Functions

discover

Discover a device/service on the local network matching given properties.

iter_services

Discover all services matching the given type and properties.

Classes

LocalServiceAdvertisement

File-based local service advertisement for IPC discovery.

LocalServiceInfo

Information about a locally advertised service.

ServiceBase

Abstract Base class to ServiceHost and ServiceClient.

ServiceClient

A client for communicating with ServiceHost.

ServiceEvent

A service discovery event yielded by iter_services().

ServiceHost

A ZeroMQ host providing REQ/REP and PUB/SUB sockets with service discovery.

ServiceIterator

Lazy iterator for service discovery events.

Exceptions

exception bpod_core.ipc.RemoteError

Bases: ServiceError

Exception representing an error on the remote side.

exception bpod_core.ipc.ServiceError

Bases: Exception

Base exception for IPC service errors.

Attributes

bpod_core.ipc.T = ~T

Per-call reply type for ServiceClient.

bpod_core.ipc.U = ~U

Default reply type for ServiceClient, set at construction.