Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added test case for issue 234

  • Loading branch information...
commit 63ad85ee66e70ba7940aaefc3e29f1d666ac1a59 1 parent f93d187
@hintjens hintjens authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 234/2-1/issue.c
View
18 234/2-1/issue.c
@@ -0,0 +1,18 @@
+#include "czmq.h"
+
+int main (void)
+{
+ zctx_t *ctx = zctx_new ();
+
+ void *reader = zsocket_new (ctx, ZMQ_DEALER);
+ int rc = zmq_bind (reader, "tcp://127.0.0.1:9001");
+ assert (rc == 0);
+
+ char *message = zstr_recv (reader);
+ if (!message)
+ puts ("Interrupted by Ctrl-C");
+
+ zctx_destroy (&ctx);
+ return 0;
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.