renamed from zs to zmq

This commit is contained in:
Martin Sustrik
2009-08-03 11:30:13 +02:00
parent 183b688764
commit cc3755a16f
120 changed files with 1258 additions and 1250 deletions

View File

@@ -19,29 +19,29 @@
#include "pipe.hpp"
zs::pipe_t::pipe_t () :
ypipe_t <zs_msg, false, message_pipe_granularity> (false),
zmq::pipe_t::pipe_t () :
ypipe_t <zmq_msg, false, message_pipe_granularity> (false),
index (-1)
{
}
zs::pipe_t::~pipe_t ()
zmq::pipe_t::~pipe_t ()
{
// Flush any outstanding messages to the pipe.
flush ();
// Deallocate all the messages in the pipe.
zs_msg msg;
zmq_msg msg;
while (read (&msg))
zs_msg_close (&msg);
zmq_msg_close (&msg);
}
void zs::pipe_t::set_index (int index_)
void zmq::pipe_t::set_index (int index_)
{
index = index_;
}
int zs::pipe_t::get_index ()
int zmq::pipe_t::get_index ()
{
return index;
}