/* Collection of code snippets by Arne Vajhøj */
/* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) */
#include <stdio.h>

#include <czmq.h>

int main(void)
{
    zsock_t *s;
    char *reqmsg;
    s = zsock_new_pull("tcp://*:10001");
    for(;;)
    {
        reqmsg = zstr_recv(s);
        printf("C (high) server : %s\n", reqmsg);
        zstr_free(&reqmsg);
    }
    return 0;
}
