March 2013
Intermediate to advanced
516 pages
15h 11m
English
ØMQ does come in several versions, and quite often if you hit a problem, it’ll be something that’s been fixed in a later version. So it’s a useful trick to know exactly what version of ØMQ you’re actually linking with. Example 1-5 is a tiny program that lets you do just that.
Example 1-5. ØMQ version reporting (version.c)
//// Report 0MQ version//#include "zhelpers.h"intmain(void){intmajor,minor,patch;zmq_version(&major,&minor,&patch);printf("Current 0MQ version is %d.%d.%d\n",major,minor,patch);returnEXIT_SUCCESS;}
Read now
Unlock full access