diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-08-03 11:30:13 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-08-03 11:30:13 +0200 |
commit | cc3755a16f00026af882ed14d122cc8aa6d50e82 (patch) | |
tree | 33a2197bab1bd6068dbfcc446fe70aaa07808fa9 /examples/chat/prompt.cpp | |
parent | 183b6887644ac05c951a3f9143248ed86e91052f (diff) |
renamed from zs to zmq
Diffstat (limited to 'examples/chat/prompt.cpp')
-rw-r--r-- | examples/chat/prompt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/chat/prompt.cpp b/examples/chat/prompt.cpp index 461e7b8..66ceaf4 100644 --- a/examples/chat/prompt.cpp +++ b/examples/chat/prompt.cpp @@ -23,7 +23,7 @@ using namespace std; -#include <zs.hpp> +#include <zmq.hpp> int main (int argc, const char *argv []) { @@ -38,8 +38,8 @@ int main (int argc, const char *argv []) const char *user_name = argv [2]; // Initialise 0MQ infrastructure and connect to the chatroom. - zs::context_t ctx (1, 1); - zs::socket_t s (ctx, ZS_PUB); + zmq::context_t ctx (1, 1); + zmq::socket_t s (ctx, ZMQ_PUB); s.connect (chatroom_in_address); while (true) { @@ -52,7 +52,7 @@ int main (int argc, const char *argv []) text = text + ": " + textbuf; // Create the message (terminating zero is part of the message) - zs::message_t message (text.size () + 1); + zmq::message_t message (text.size () + 1); memcpy (message.data (), text.c_str (), text.size () + 1); // Send the message |