Skip to content

Instantly share code, notes, and snippets.

@SavageMessiah
SavageMessiah / gist:920327
Created April 14, 2011 19:48
ctrl-c test
#include <zmq.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
int main (void)
{
void *context = zmq_init (1);
// Socket to talk to clients
@SavageMessiah
SavageMessiah / gist:920133
Created April 14, 2011 18:24
ctrl-c testcase
import zmq, json, signal
ctx = zmq.Context()
rep = ctx.socket(zmq.REP)
rep.bind("tcp://*:5556")
rep.recv()