Skip to content

Commit

Permalink
Merge pull request #310 from damian123/patch-1
Browse files Browse the repository at this point in the history
Update hwserver.cpp
  • Loading branch information
hintjens committed Mar 23, 2013
2 parents 0b32a21 + bf88c1a commit d727c6e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/C++/hwserver.cpp
Expand Up @@ -6,7 +6,11 @@
#include <zmq.hpp>
#include <string>
#include <iostream>
#ifndef _WIN32
#include <unistd.h>
#else
#include <windows.h>
#endif

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

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

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

0 comments on commit d727c6e

Please sign in to comment.