From 6da14e1590935710055ebc81ba55017b457ca1ad Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 22 Jul 2025 22:00:00 +0200 Subject: Initial daemon implementation, no routing yet --- daemon/src/routing.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 daemon/src/routing.cpp (limited to 'daemon/src/routing.cpp') diff --git a/daemon/src/routing.cpp b/daemon/src/routing.cpp new file mode 100644 index 0000000..709d815 --- /dev/null +++ b/daemon/src/routing.cpp @@ -0,0 +1,24 @@ +#include "routing.h" + +#include + +namespace midi_router +{ + +void +Router::route(Route_Map const & config) const +{ + +} + +void +Router::submit(Message const & message) +{ + if (!m_queue.try_enqueue(message)) + { + std::cout << "Failed to enqueue message from " << message.source_id << "\n"; + } +} + +} // namespace midi_router + -- cgit v1.2.3