zeromq / czmqpp

C++ wrapper for czmq. Aims to be minimal, simple and consistent.
Other
45 stars 27 forks source link

Port test to C++/czmqpp #41

Open alexreg opened 8 years ago

alexreg commented 8 years ago

I have a test case for czmq, that I wish to port to C++/czmqpp, for inclusion in a package specification (Homebrew formula). Is there any chance someone could help me out on this? My C++ is awfully rusty, and there doesn't exist any documentation for czmqpp it seems.

#include <czmq.h>

int main(void)
{
  zsock_t *push = zsock_new_push("inproc://hello-world");
  zsock_t *pull = zsock_new_pull("inproc://hello-world");

  zstr_send(push, "Hello, World!");
  char *string = zstr_recv(pull);
  puts(string);
  zstr_free(&string);

  zsock_destroy(&pull);
  zsock_destroy(&push);

  return 0;
}