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/display.cpp | |
parent | 183b6887644ac05c951a3f9143248ed86e91052f (diff) |
renamed from zs to zmq
Diffstat (limited to 'examples/chat/display.cpp')
-rw-r--r-- | examples/chat/display.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/chat/display.cpp b/examples/chat/display.cpp index ceb096f..3da565e 100644 --- a/examples/chat/display.cpp +++ b/examples/chat/display.cpp @@ -23,7 +23,7 @@ using namespace std; -#include <zs.hpp> +#include <zmq.hpp> int main (int argc, const char *argv []) { @@ -38,17 +38,17 @@ int main (int argc, const char *argv []) // Initialise 0MQ infrastructure, connect to the chatroom and ask for all // messages and gap notifications. - zs::context_t ctx (1, 1); - zs::socket_t s (ctx, ZS_SUB); + zmq::context_t ctx (1, 1); + zmq::socket_t s (ctx, ZMQ_SUB); s.connect (chatroom_out_address); s.subscribe ("*"); while (true) { // Get a message and print it to the console. - zs::message_t message; + zmq::message_t message; s.recv (&message); - if (message.type () == zs::message_gap) + if (message.type () == zmq::message_gap) cout << "Problems connecting to the chatroom..." << endl; else cout << (char*) message.data () << flush; |