#pragma once #include "WHISPER/Messages/Message.hpp" #include "WHISPER/whisper.hpp" #include #include #include #include #include #include #define ZMQ_BUILD_DRAFT_API 1 #include #include namespace WHISPER { class InternalUDPSender{ private: /// address to send to std::string address_; /// port to send to std::uint16_t port_; /// zeromq io contex zmq::context_t ctx; /// shared pointer to receiving socket std::shared_ptr senderSocket_ = nullptr; public: InternalUDPSender(std::string address, std::uint16_t port); ~InternalUDPSender(); void send(WHISPER::Message msg,WHISPER::MsgTopics topic = WHISPER::MANAGEMENT); }; }