ADD: added new constructor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user