Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created January 29, 2016 12:12
Show Gist options
  • Select an option

  • Save taotetek/e631c03c5141935539ba to your computer and use it in GitHub Desktop.

Select an option

Save taotetek/e631c03c5141935539ba to your computer and use it in GitHub Desktop.
#include "czmq.h"
int
main (void)
{
zsock_t *server = zsock_new (ZMQ_SERVER);
assert (server);
zsock_bind (server, "tcp://127.0.0.1:31337");
char *msg = zstr_recv (server);
printf ("msg: %s", msg);
zsock_destroy (&server);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment