Hi everyone!<br><br>I'm a newbie playing with python-avahi trying to code some kind of master-slave application for shutdown every machine at same time.<br>When the master it's ordered to shutdown, it sends the signal to the slaves. The slaves publish/unpublish the service via avahi, and the master <br>
discover them via ItemNew/ItemRemove signals. Very strait-forward, isn't?<br><br>The avahi publish/unpublish/discover services it's gorgeous but i've found that if a slave, that has published the service via avahi, losts it <br>
network (i.e. the wifi ap goes out of power), the master still discovering it! and no ItemRemove signal it's raised at all. Is it normal? Am i doing something wrong?<br><br>To solve it, i've implemented some kind of "ping" to the slaves service every Xseconds. When a new slave it's discovered, the periodic ping starts. <br>
When ping it's failing i know there be some problem with networking.<br clear="all"><br>I wonder if avahi itself provides a native workaround to avoid the coding of those nasty "ping" cycles ...<br><br>Cheers!<br>
<br>-- <br><a href="http://nosigasleyendo.blogspot.com">http://nosigasleyendo.blogspot.com</a><br>