Hi everyone!<br><br>I&#39;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&#39;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&#39;t?<br><br>The avahi publish/unpublish/discover services it&#39;s gorgeous but i&#39;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&#39;s raised at all. Is it normal? Am i doing something wrong?<br><br>To solve it, i&#39;ve implemented some kind of &quot;ping&quot; to the slaves service every Xseconds. When a new slave it&#39;s discovered, the periodic ping starts. <br>
When ping it&#39;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 &quot;ping&quot; cycles ...<br><br>Cheers!<br>
<br>-- <br><a href="http://nosigasleyendo.blogspot.com">http://nosigasleyendo.blogspot.com</a><br>