I've recently run into this issue as well Jarek. The easiest solution I
found was to just launch a background 'avahi-publish' subprocess with
the appropriate arguments. Send it a friendly kill signal when you wish
to stop publishing and that's the end of it. It's a linux-specific
solution, of course, but it's dirt simple and avoids the problem of
multiple-mdns stacks on a single machine. If you'd like to support
other platforms and/or non-avahi mdns stacks, it should be fairly
straight-forward to write a small C/Python application for each that
does the effectively the same thing.<br><br>&nbsp;&nbsp;&nbsp; Likewise, for browsing services, I&#39;ve decided to go the route of using &#39;avahi-browse&#39; to extract the information for me rather than try and re-implement it directly in Python. Python is so damn friendly, I often forget that good ol&#39; shell commands can often be the best tool for the job ;-)
<br>
<br>
&nbsp;&nbsp;&nbsp; Cheers,<br>
<br>
&nbsp;&nbsp;&nbsp; Tom<br><br><div class="gmail_quote">On Dec 26, 2007 7:31 AM, Jarek Zgoda &lt;<a href="mailto:jarek.zgoda@sensisoft.com">jarek.zgoda@sensisoft.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;d like to add auto-discovery feature to my (Twisted) application and I<br>thought I&#39;ll use zeroconf to advertize the service to clients in local<br>network. I decided on zeroconf, because the app is a webservice that has to
<br>be accessible to multitude of various clients. Unfortunately, the only one<br>library I found barely usable with Twisted is PyZeroconf (the other is<br>avahi, but it seems too tightly bound to gobject to be usable with
<br>Twisted). Is this all or I do not know how to use google?<br><br>Anybody can share any hints on this? Is this feasible idea or there are<br>better ways to achieve what I want?<br><br>Cheers<br>Jarek Zgoda<br><br><br>_______________________________________________
<br>Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
</a><br></blockquote></div><br>