context = new ZContext();
// fix lazy creation
context.setContext(ZMQ.context(Integer.parseInt(conf.getProperty("io_threads", "1"))));
ZPWriter writer = new ZPWriter(context, conf);
ZPReader reader = new ZPReader(context, conf);
try {
writer.start();
reader.start();
} finally {
writer.shutdown();
reader.shutdown();
destoryed = true;
}
}