mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 19:52:00 +01:00
Problem: PGM/NORM builds broken due to i_engine API change
Solution: implement get_endpoint in the NORM and PGM engines too
This commit is contained in:
@@ -728,5 +728,9 @@ zmq::norm_engine_t::NormRxStreamState* zmq::norm_engine_t::NormRxStreamState::Li
|
|||||||
return nextItem;
|
return nextItem;
|
||||||
} // end zmq::norm_engine_t::NormRxStreamState::List::Iterator::GetNextItem()
|
} // end zmq::norm_engine_t::NormRxStreamState::List::Iterator::GetNextItem()
|
||||||
|
|
||||||
|
const char *zmq::norm_engine_t::get_endpoint () const
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
#endif // ZMQ_HAVE_NORM
|
#endif // ZMQ_HAVE_NORM
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ namespace zmq
|
|||||||
|
|
||||||
virtual void zap_msg_available () {};
|
virtual void zap_msg_available () {};
|
||||||
|
|
||||||
|
virtual const char *get_endpoint () const;
|
||||||
|
|
||||||
// i_poll_events interface implementation.
|
// i_poll_events interface implementation.
|
||||||
// (we only need in_event() for NormEvent notification)
|
// (we only need in_event() for NormEvent notification)
|
||||||
// (i.e., don't have any output events or timers (yet))
|
// (i.e., don't have any output events or timers (yet))
|
||||||
|
|||||||
@@ -152,6 +152,11 @@ void zmq::pgm_receiver_t::restart_input ()
|
|||||||
in_event ();
|
in_event ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *zmq::pgm_receiver_t::get_endpoint () const
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
void zmq::pgm_receiver_t::in_event ()
|
void zmq::pgm_receiver_t::in_event ()
|
||||||
{
|
{
|
||||||
// Read data from the underlying pgm_socket.
|
// Read data from the underlying pgm_socket.
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ namespace zmq
|
|||||||
void restart_input ();
|
void restart_input ();
|
||||||
void restart_output ();
|
void restart_output ();
|
||||||
void zap_msg_available () {}
|
void zap_msg_available () {}
|
||||||
|
const char *get_endpoint () const;
|
||||||
|
|
||||||
// i_poll_events interface implementation.
|
// i_poll_events interface implementation.
|
||||||
void in_event ();
|
void in_event ();
|
||||||
|
|||||||
@@ -136,6 +136,11 @@ void zmq::pgm_sender_t::restart_input ()
|
|||||||
zmq_assert (false);
|
zmq_assert (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *zmq::pgm_sender_t::get_endpoint () const
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
zmq::pgm_sender_t::~pgm_sender_t ()
|
zmq::pgm_sender_t::~pgm_sender_t ()
|
||||||
{
|
{
|
||||||
int rc = msg.close ();
|
int rc = msg.close ();
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ namespace zmq
|
|||||||
void restart_input ();
|
void restart_input ();
|
||||||
void restart_output ();
|
void restart_output ();
|
||||||
void zap_msg_available () {}
|
void zap_msg_available () {}
|
||||||
|
const char *get_endpoint () const;
|
||||||
|
|
||||||
// i_poll_events interface implementation.
|
// i_poll_events interface implementation.
|
||||||
void in_event ();
|
void in_event ();
|
||||||
|
|||||||
Reference in New Issue
Block a user