ADD: added new constructor

This commit is contained in:
Henry Winkel
2023-10-27 14:17:58 +02:00
parent f17566cba0
commit 82a891b0cd
2 changed files with 20 additions and 10 deletions

View File

@@ -21,14 +21,14 @@ namespace WHISPER {
public:
InternalUDPListener(std::uint16_t port, std::string address = "*");
InternalUDPListener(std::uint16_t port);
InternalUDPListener(std::string address, std::uint16_t port);
~InternalUDPListener();
[[DEPRECATED]]
[[deprecated]]
void connect(std::shared_ptr<threadSafeQueue<WHISPER::Message>> receiver);
void connect();
void addReceiverQueue(std::shared_ptr<threadSafeQueue<WHISPER::Message>> receiver);
void start();
void stop();
@@ -41,9 +41,7 @@ namespace WHISPER {
private:
/// @brief the address to listen to (default: "*")
std::string address_;
/// @brief the port to listen to
std::uint16_t port_;
//zeromq io contex
zmq::context_t ctx;