Skip to content

Instantly share code, notes, and snippets.

View mkarliner's full-sized avatar

Michael Karliner mkarliner

View GitHub Profile
@claws
claws / czmq-stream-client.c
Created October 30, 2013 12:07
ZMQ can communicate with non-ZMQ TCP peers using the ZMQ_STREAM socket type. This is a silly example that uses the CZMQ library to create a non-ZMTP TCP server and a non-ZMTP TCP client. It was created to investigate how one might make use of the ZMQ_STREAM socket type.
//
// A minimal TCP client using the ZMQ API. This demonstrates a
// useful mechanism for bridging a ZMQ based system out to other
// TCP based systems.
//
#include "czmq.h"