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

Port test to C++/czmqpp #41

Open
alexreg opened this issue May 9, 2016 · 0 comments
Open

Port test to C++/czmqpp #41

alexreg opened this issue May 9, 2016 · 0 comments

Comments

@alexreg
Copy link

alexreg commented May 9, 2016

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant