summaryrefslogtreecommitdiff
path: root/src/object.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-05-30 10:07:34 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-05-30 10:07:34 +0200
commit0b59866a84f733e5a53b0d2f32570581691747ef (patch)
tree8861d97915544dc4385177931f299a6f27603c92 /src/object.cpp
parent311fb0d852374e769d8ff791c9df38f0464960c6 (diff)
Patches from sub-forward branch incorporated
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 0a06d5f..ba77bf0 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -74,7 +74,7 @@ void zmq::object_t::process_command (command_t &cmd_)
case command_t::plug:
process_plug ();
process_seqnum ();
- return;
+ break;
case command_t::own:
process_own (cmd_.args.own.object);
@@ -96,9 +96,13 @@ void zmq::object_t::process_command (command_t &cmd_)
process_seqnum ();
break;
+ case command_t::hiccup:
+ process_hiccup (cmd_.args.hiccup.pipe);
+ break;
+
case command_t::pipe_term:
process_pipe_term ();
- return;
+ break;
case command_t::pipe_term_ack:
process_pipe_term_ack ();
@@ -290,6 +294,18 @@ void zmq::object_t::send_activate_write (pipe_t *destination_,
send_command (cmd);
}
+void zmq::object_t::send_hiccup (pipe_t *destination_, void *pipe_)
+{
+ command_t cmd;
+#if defined ZMQ_MAKE_VALGRIND_HAPPY
+ memset (&cmd, 0, sizeof (cmd));
+#endif
+ cmd.destination = destination_;
+ cmd.type = command_t::hiccup;
+ cmd.args.hiccup.pipe = pipe_;
+ send_command (cmd);
+}
+
void zmq::object_t::send_pipe_term (pipe_t *destination_)
{
command_t cmd;
@@ -418,6 +434,11 @@ void zmq::object_t::process_activate_write (uint64_t msgs_read_)
zmq_assert (false);
}
+void zmq::object_t::process_hiccup (void *pipe_)
+{
+ zmq_assert (false);
+}
+
void zmq::object_t::process_pipe_term ()
{
zmq_assert (false);