sm_bluesky.common.server#

Members

AbstractInstrumentServer

Base class for TCP instrument servers.

class sm_bluesky.common.server.AbstractInstrumentServer(host: str, port: int, ipv6: bool = False)[source]#

Base class for TCP instrument servers.

Handles socket lifecycle, connection management, and buffered command parsing. Subclasses must implement hardware-specific control logic.

start() None[source]#

Initializes the server, connects hardware, and enters the listening loop.

stop() None[source]#

Stops the server, closes sockets, and disconnects hardware.

abstractmethod connect_hardware() bool[source]#

Establishes connection to the specific hardware device.

abstractmethod disconnect_hardware() None[source]#

Disconnect from the hardware device.