From f6e7aafbacd4d18580eec47a1429cd092d60e389 Mon Sep 17 00:00:00 2001 From: Stuart Miller Date: Wed, 6 Dec 2023 14:28:02 -0600 Subject: [PATCH 1/2] Add means to directly send a message on a NetworkRuntime. --- include/mav/Network.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mav/Network.h b/include/mav/Network.h index 90b5fa6..32457d1 100644 --- a/include/mav/Network.h +++ b/include/mav/Network.h @@ -405,6 +405,10 @@ namespace mav { _heartbeat_message = std::nullopt; } + void sendMessage(Message &message) { + _sendMessage(message, {}); + } + void stop() { _interface.close(); _should_terminate.store(true); From c92860e1ceac076365042a8ec74c6dd65efdf8e3 Mon Sep 17 00:00:00 2001 From: Thomas Debrunner Date: Mon, 22 Jan 2024 15:23:25 +0100 Subject: [PATCH 2/2] Netowork: change low-level sendMessage to injectMessage --- include/mav/Network.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mav/Network.h b/include/mav/Network.h index 32457d1..5988b42 100644 --- a/include/mav/Network.h +++ b/include/mav/Network.h @@ -405,7 +405,7 @@ namespace mav { _heartbeat_message = std::nullopt; } - void sendMessage(Message &message) { + void injectMessage(Message &message) { _sendMessage(message, {}); }