ADD: added support for specify the address to listen to
This commit is contained in:
@@ -21,7 +21,7 @@ namespace WHISPER {
|
||||
|
||||
|
||||
public:
|
||||
InternalUDPListener(std::uint16_t port);
|
||||
InternalUDPListener(std::uint16_t port, std::string address = "*");
|
||||
~InternalUDPListener();
|
||||
void connect(std::shared_ptr<threadSafeQueue<WHISPER::Message>> receiver);
|
||||
void start();
|
||||
@@ -36,6 +36,9 @@ 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