From f8bf3a4cef6b8e1688683ab8c5ed6dd1bc8e3a12 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 27 Jun 2011 18:16:53 +0200 Subject: Rename i_inout to i_engine_sink Signed-off-by: Martin Sustrik --- src/pgm_receiver.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/pgm_receiver.cpp') diff --git a/src/pgm_receiver.cpp b/src/pgm_receiver.cpp index bb79ece..1fd687a 100644 --- a/src/pgm_receiver.cpp +++ b/src/pgm_receiver.cpp @@ -32,7 +32,6 @@ #include "err.hpp" #include "stdint.hpp" #include "wire.hpp" -#include "i_inout.hpp" zmq::pgm_receiver_t::pgm_receiver_t (class io_thread_t *parent_, const options_t &options_) : @@ -40,7 +39,7 @@ zmq::pgm_receiver_t::pgm_receiver_t (class io_thread_t *parent_, has_rx_timer (false), pgm_socket (true, options_), options (options_), - inout (NULL), + sink (NULL), mru_decoder (NULL), pending_bytes (0) { @@ -57,7 +56,7 @@ int zmq::pgm_receiver_t::init (bool udp_encapsulation_, const char *network_) return pgm_socket.init (udp_encapsulation_, network_); } -void zmq::pgm_receiver_t::plug (io_thread_t *io_thread_, i_inout *inout_) +void zmq::pgm_receiver_t::plug (io_thread_t *io_thread_, i_engine_sink *sink_) { // Retrieve PGM fds and start polling. int socket_fd; @@ -68,7 +67,7 @@ void zmq::pgm_receiver_t::plug (io_thread_t *io_thread_, i_inout *inout_) set_pollin (pipe_handle); set_pollin (socket_handle); - inout = inout_; + sink = sink_; } void zmq::pgm_receiver_t::unplug () @@ -91,7 +90,7 @@ void zmq::pgm_receiver_t::unplug () rm_fd (socket_handle); rm_fd (pipe_handle); - inout = NULL; + sink = NULL; } void zmq::pgm_receiver_t::terminate () @@ -218,7 +217,7 @@ void zmq::pgm_receiver_t::in_event () it->second.decoder = new (std::nothrow) decoder_t (0, options.maxmsgsize); alloc_assert (it->second.decoder); - it->second.decoder->set_inout (inout); + it->second.decoder->set_sink (sink); } mru_decoder = it->second.decoder; @@ -244,7 +243,7 @@ void zmq::pgm_receiver_t::in_event () } // Flush any messages decoder may have produced. - inout->flush (); + sink->flush (); } void zmq::pgm_receiver_t::timer_event (int token) -- cgit v1.2.3