C examples using nanomsg library