[zeromq-dev] PUB/SUB in realtime, aka real radio broadcast

Samuele Carli carlisamuele at csspace.net
Mon Nov 11 01:01:51 CET 2013


On 11/11/2013 12:55 AM, Samuele Carli wrote:
> On 11/10/2013 09:12 PM, Bruno D. Rodrigues wrote:
>> I'm unable to test this but as I see a sleep 0.5 and a constant delay
>> increase of 1sec I'd suggest the receiver to instead of sleeping a
>> fixed time, to poll, with a timeout value until the next tick. That
>> way if the receive and your code takes 0.75s, the poll can Sleep only
>> Up to 0.25s, but more importamtly, consume the Messages already on the
>> air.
>>
> 

Ah sorry I forgot to mention, the log I pasted was recorded using a receiver delay of 1 second instead of 0.5 as shown in the code snippet, as you correctly noticed! Sorry for the confusion.

Cheers,
Sam
-- 
|--
| Samuele Carli
|--
| Contacts:
|
|	Home page   : www.csspace.net
|       E-mail      : carlisamuele _at_ csspace.net
|       Icq         : 60401601
|	Skype	    : wohthan
|	jabber/gtalk: wohthan at gmail.com (no emails here!)
|--



More information about the zeromq-dev mailing list