[zeromq-dev] How to open a socket on a real file ?

Laurent Alebarde l.alebarde at free.fr
Wed Jun 5 15:29:53 CEST 2013


Thanks Pieter.

In the time between, I had a look at zguide/examples/C/fileio[1-3].c , 
but they don't use polling.

As far as I can see, filemq (client_thread) makes use of sockets only, 
not file descriptors. The zmq_poll manual you have pointed to me 
assesses it is possible, but a C example would be welcome. Do I have 
just to open the file and polling do the rest ? Or shall I read chunks 
of it, what triggers zmq_poll ? If I do read and 0mq stuff in the same 
thread, isn't it preferable to just read in a buffer and zmq_send ? I 
cannot figure out why I should pool in that case ?

filemq is not easy for me to study. As you describe it as a PUB/SUB, 
except the integrity check with the SHA digest and the SASL security, I 
have no mean to check the delivery. Is it correct ?

At this point, I am making a mix between zguide/examples/C/fileio1.c and 
the lazy pirate.

Cheers,

Laurent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130605/188c9749/attachment.htm>


More information about the zeromq-dev mailing list