pub fn cmd_responder(
cmd_server_address: String,
run_config: &RunConfig,
run_config_sender: &Sender<RunConfig>,
tp_to_pub: &Sender<TofPacket>,
address_for_cali: String,
thread_control: Arc<Mutex<ThreadControl>>,
)
Expand description
Centrailized command management
Maintain 0MQ command connection and faciliate forwarding of commands and responses
ยงArguments
- cmd_server_address : The full address string e.g. tcp://1.1.1.1:12345 where the command server is publishing commands..
- run_config : The default runconfig. Defined by reading in the config file when the code boots up. When we receive a simple DataRunStartCommand, we will run this configuration
- run_config_sender : A sender to send the dedicated run config to the runner
- tp_to_pub : Send TofPackets to the data pub. Some TOF commands might trigger additional information to get send.
- address_for_cali : The local (self) PUB address, so that the rb_calibratoin, can subscribe to it to loop itself the event packets
- thread_control : Manage thread control signals, e.g. stop