10 class NNGIQSinkBlock :
public Block
14 std::string address =
"0.0.0.0";
18 nng_listener listener;
24 void stop(
bool stop_now =
false,
bool force=
false);
32 nlohmann::ordered_json p;
33 add_param_simple(p,
"address",
"string");
34 p[
"address"][
"disable"] = is_work_running();
35 add_param_simple(p,
"port",
"int");
36 p[
"port"][
"disable"] = is_work_running();
44 else if (key ==
"port")
47 throw satdump_exception(key);
54 else if (key ==
"port")
57 throw satdump_exception(key);
cfg_res_t
set_cfg status.
Definition block.h:241
virtual bool work()=0
The actual looping work function meant to handle all the DSP (well, in most blocks)
Block(std::string id, std::vector< BlockIO > in={}, std::vector< BlockIO > out={})
Generic constructor, to be overloaded.
Definition block.h:208
nlohmann::json get_cfg(std::string key)
Get parameters of the block as JSON.
Definition nng_iq_sink.h:40
void stop(bool stop_now=false, bool force=false)
Stops the block, or rather tells the internal loop it should exit & joins the thread to wait....
Definition nng_iq_sink.cpp:27
void start()
Starts this block's internal thread and loop.
Definition nng_iq_sink.cpp:16
nlohmann::ordered_json get_cfg_list()
Get parameters LIST of the block's parameters. This does not contain actual values,...
Definition nng_iq_sink.h:30
cfg_res_t set_cfg(std::string key, nlohmann::json v)
Set parameters of the block from JSON, including potentially IO configurations for blocks that may ha...
Definition nng_iq_sink.h:50