Weather update proxy in C

// Weather proxy device

#include "zhelpers.h"

int main (void)
void *context = zmq_ctx_new ();

// This is where the weather server sits
void *frontend = zmq_socket (context, ZMQ_XSUB);
zmq_connect (frontend, "tcp://");

// This is our public endpoint for subscribers
void *backend = zmq_socket (context, ZMQ_XPUB);
zmq_bind (backend, "tcp://");

// Run the proxy until the user interrupts us
zmq_proxy (frontend, backend, NULL);

zmq_close (frontend);
zmq_close (backend);
zmq_ctx_destroy (context);
return 0;