Am 27.11.2013 um 14:15 schrieb Arnaud Loonstra <[email protected]>:

> On 11/27/2013 12:03 PM, Michael Haberler wrote:
>> I consider using zbeacon for service discovery, but more in a DHCP-style way 
>> (I dont have the use case for permanently visible beacons since the 
>> information is used during startup/on demand only)
>> 
>> an application looking for services would broadcast (a) request(s) for the 
>> services needed, and entities with matching services would reply with an 
>> answer directed to the source IP address (i.e. non-broadcast); repeat until 
>> all needed services acquired.
>> 
>> IMV the only missing part in zbeacon to achieve this would be a directed 
>> counterpart of zbeacon_publish(), with a signature like so:
>> 
>>  void zbeacon_send (zbeacon_t *self,  char *ipaddress, byte *transmit, 
>> size_t size)
>> 
>> which would transmit a directed UDP reply once.
>> 
>> --
>> 
>> If there's interest in such a feature I'd add support for this in czmq and 
>> issue a PR
>> 
>> - Michael
> 
> In Zyre zbeacon is broadcasting continuously, would the nodes be 
> replying continuously as well? Otherwise you would need to do some 
> tracking of nodes inside zbeacon?

I wouldnt use zbeacon_publish() so broadcasting wouldnt be used by the responder

zbeacon_send() would just pass a frame and ipaddress to the background thread 
for transmission

-Michael

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to