server
dev_tool.launcher.ipc.server
log = logging.getLogger(__name__)
module-attribute
IPCServer
A server for inter-process communication.
This class provides methods for handling commands from IPC clients.
The constructor for the IPCServer class.
Parameters:
-
ipc_port(int) –The port number for the IPC server.
-
shutdown_callback–The callback function to call when a shutdown command is received.
-
host(str, default:'127.0.0.1') –The host address for the IPC server.
Source code in dev_tool/launcher/ipc/server.py
callback = callback
instance-attribute
host = host
instance-attribute
ipc_port = ipc_port
instance-attribute
server = None
instance-attribute
start
A method that starts the IPC server.
Source code in dev_tool/launcher/ipc/server.py
stop
A method that stops the IPC server.