Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hwserver.cpp #310

Merged
merged 1 commit into from Mar 23, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion examples/C++/hwserver.cpp
Expand Up @@ -6,7 +6,11 @@
#include <zmq.hpp> #include <zmq.hpp>
#include <string> #include <string>
#include <iostream> #include <iostream>
#ifndef _WIN32
#include <unistd.h> #include <unistd.h>
#else
#include <windows.h>
#endif


int main () { int main () {
// Prepare our context and socket // Prepare our context and socket
Expand All @@ -22,7 +26,11 @@ int main () {
std::cout << "Received Hello" << std::endl; std::cout << "Received Hello" << std::endl;


// Do some 'work' // Do some 'work'
sleep (1); #ifndef _WIN32
sleep(1);
else
Sleep (1);
#endif


// Send reply back to client // Send reply back to client
zmq::message_t reply (5); zmq::message_t reply (5);
Expand Down