|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Thin RAII wrapper that sends Configure* protobuf requests and returns the corresponding responses. More...
#include <ControlClient.hpp>
Public Types | |
| using | Milliseconds = std::chrono::milliseconds |
Public Member Functions | |
| ControlClient (zmq::context_t &ctx, std::string_view ip, uint16_t port, Milliseconds timeout=Milliseconds{500}) | |
| daphnemodules::ConfigureResponse | configure (const daphnemodules::ConfigureRequest &req) |
| daphnemodules::ConfigureCLKsResponse | configure_clks (const daphnemodules::ConfigureCLKsRequest &req) |
Private Attributes | |
| zmq::socket_t | socket_ |
Thin RAII wrapper that sends Configure* protobuf requests and returns the corresponding responses.
Lifetime:
Definition at line 22 of file ControlClient.hpp.
| using daphne::zmq::ControlClient::Milliseconds = std::chrono::milliseconds |
Definition at line 25 of file ControlClient.hpp.
| daphne::zmq::ControlClient::ControlClient | ( | zmq::context_t & | ctx, |
| std::string_view | ip, | ||
| uint16_t | port, | ||
| Milliseconds | timeout = Milliseconds{500} ) |
Definition at line 42 of file ControlClient.cpp.
| daphnemodules::ConfigureResponse daphne::zmq::ControlClient::configure | ( | const daphnemodules::ConfigureRequest & | req | ) |
Send an already-filled ConfigureRequest and wait for reply.
Definition at line 56 of file ControlClient.cpp.
| daphnemodules::ConfigureCLKsResponse daphne::zmq::ControlClient::configure_clks | ( | const daphnemodules::ConfigureCLKsRequest & | req | ) |
Same for ConfigureCLKsRequest
Definition at line 69 of file ControlClient.cpp.
|
private |
Definition at line 41 of file ControlClient.hpp.