summaryrefslogtreecommitdiff
path: root/src/pgm_receiver.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-06-27 18:16:53 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-06-27 18:16:53 +0200
commitf8bf3a4cef6b8e1688683ab8c5ed6dd1bc8e3a12 (patch)
treec73fa27cb241d8b4639b0cc535fbd3c6f39c3821 /src/pgm_receiver.cpp
parent3ae73ee11f13bbc9c91b235de18fde763c359009 (diff)
Rename i_inout to i_engine_sink
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/pgm_receiver.cpp')
-rw-r--r--src/pgm_receiver.cpp13
1 files changed, 6 insertions, 7 deletions
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)