Commit 75fba539 authored by Luca Boccassi's avatar Luca Boccassi

Problem: PGM/NORM builds broken due to i_engine API change

Solution: implement get_endpoint in the NORM and PGM engines too
parent a6cef4ef
......@@ -728,5 +728,9 @@ zmq::norm_engine_t::NormRxStreamState* zmq::norm_engine_t::NormRxStreamState::Li
return nextItem;
} // end zmq::norm_engine_t::NormRxStreamState::List::Iterator::GetNextItem()
const char *zmq::norm_engine_t::get_endpoint () const
{
return "";
}
#endif // ZMQ_HAVE_NORM
......@@ -46,6 +46,8 @@ namespace zmq
virtual void zap_msg_available () {};
virtual const char *get_endpoint () const;
// i_poll_events interface implementation.
// (we only need in_event() for NormEvent notification)
// (i.e., don't have any output events or timers (yet))
......
......@@ -152,6 +152,11 @@ void zmq::pgm_receiver_t::restart_input ()
in_event ();
}
const char *zmq::pgm_receiver_t::get_endpoint () const
{
return "";
}
void zmq::pgm_receiver_t::in_event ()
{
// Read data from the underlying pgm_socket.
......
......@@ -64,6 +64,7 @@ namespace zmq
void restart_input ();
void restart_output ();
void zap_msg_available () {}
const char *get_endpoint () const;
// i_poll_events interface implementation.
void in_event ();
......
......@@ -136,6 +136,11 @@ void zmq::pgm_sender_t::restart_input ()
zmq_assert (false);
}
const char *zmq::pgm_sender_t::get_endpoint () const
{
return "";
}
zmq::pgm_sender_t::~pgm_sender_t ()
{
int rc = msg.close ();
......
......@@ -63,6 +63,7 @@ namespace zmq
void restart_input ();
void restart_output ();
void zap_msg_available () {}
const char *get_endpoint () const;
// i_poll_events interface implementation.
void in_event ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment