#pragma once #include "port_impl_base.hpp" #include "port_types.hpp" #include #include #define FMT_HEADER_ONLY #include #include // Router transport placeholder (no send/recv logic yet). template class PortImpl : public PortImplBase { public: PortImpl(const Port *port, zmq::context_t &zmq_ctx, const std::map &endpoints, Callback &&callback) : PortImplBase(port, zmq_ctx, endpoints, std::forward(callback)) {} // Send to socket depending on implementation void send(const msgpack::sbuffer &data, const std::string &addr = "") const override {}; private: void listen__(std::stop_token st) const override { while (!st.stop_requested()) { std::this_thread::sleep_for(std::chrono::milliseconds(100u)); } } };