Hi list,<div><br></div><div>I am new to DBUS and new to Avahi, and I've encountered a major learning curve issue.</div><div><br></div><div>The documentation on the Avahi website doesn't seem to be.... complete to say the least.  When I go to <a href="http://avahi.org/">http://avahi.org/</a> I see "Error: Failed to load processor TracNav No macro or processor named 'TracNav' found" and cannot browse the Wikipedia.  </div>
<div><br></div><div>With that said, I am trying to communicate with Avahi via DBUS to return all broadcasted services of a particular domain.  I will need to get all the details, similar if I were to use "avahi-browse -d <domain> -aktrp".  </div>
<div><br></div><div>I have reviewed the Avahi-introspection document (XML), but it's implicit (IMHO), and I am not sure what method call does what to avahi.  I've tried tinkering, and making assumptions about which values/parameters will get me the desired results, but I am not getting anywhere.  Below is the code I have started - the only goal of adding this to the email is to show you how little headway I have made into solving this problem - although I did spend about 4 hours scouring the internet over the last 3 days trying to find documentation.    </div>

<div><br></div><div><div>import dbus</div><div><br></div><div>__bus_name__ = 'org.freedesktop.Avahi.Server'</div><div><br></div><div>sys_bus = dbus.SystemBus()</div><div># get an object called / in org.freedesktop.Avahi to talk to</div>

<div>raw_server = sys_bus.get_object('org.freedesktop.Avahi', '/')</div><div> </div><div># objects support interfaces. get the org.freedesktop.Avahi.Server interface to our org.freedesktop.Avahi object.</div>

<div>server_interface = dbus.Interface(raw_server, __bus_name__)</div></div><div><br></div><div><br></div><div><br></div><div>Furthermore, using d-feet (or qdbus from CL) gives me the following methods to interact with:</div>
<div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">bool                                                         <br>
int                                                         <br>method                                                       <br>org.freedesktop.Avahi.Server.AddressResolverNew              <br>org.freedesktop.Avahi.Server.DomainBrowserNew                <br>
org.freedesktop.Avahi.Server.GetState                       <br>org.freedesktop.Avahi.Server.StateChanged<br>org.freedesktop.Avahi.Server.EntryGroupNew                  <br>org.freedesktop.Avahi.Server.GetVersionString                <br>
org.freedesktop.DBus.Introspectable.Introspect<br>org.freedesktop.Avahi.Server.GetAlternativeHostName          <br>org.freedesktop.Avahi.Server.HostNameResolverNew             <br>QDBusObjectPath<br>org.freedesktop.Avahi.Server.GetAlternativeServiceName       <br>
org.freedesktop.Avahi.Server.IsNSSSupportAvailable           <br>QString<br>org.freedesktop.Avahi.Server.GetAPIVersion                  <br>org.freedesktop.Avahi.Server.RecordBrowserNew                <br>signal<br>org.freedesktop.Avahi.Server.GetDomainName                  <br>
org.freedesktop.Avahi.Server.ResolveAddress                  <br>uint<br>org.freedesktop.Avahi.Server.GetHostName                     <br>org.freedesktop.Avahi.Server.ResolveHostName                 <br>void<br>org.freedesktop.Avahi.Server.GetHostNameFqdn                <br>
org.freedesktop.Avahi.Server.ServiceBrowserNew<br>org.freedesktop.Avahi.Server.GetLocalServiceCookie          <br>org.freedesktop.Avahi.Server.ServiceResolverNew<br>org.freedesktop.Avahi.Server.GetNetworkInterfaceIndexByName <br>
org.freedesktop.Avahi.Server.ServiceTypeBrowserNew<br>org.freedesktop.Avahi.Server.GetNetworkInterfaceNameByIndex<br>org.freedesktop.Avahi.Server.SetHostName</blockquote><div><br></div><div>What do any of these do?  Some of them are obvious to me, and work just fine - say for instance "GetState" or "GetAPIVersion".  Those just return a value.  But Im looking for a little more complexity, perhaps I bit off more than I can chew?</div>
<div><br></div><div>If anything, I am just looking for a document I can learn from that might help me figure out how to get a parsable list of services for a particular domain (which includes the resolved information). Can anyone point me in the right direction?</div>
<div><br></div><div>Thanks in advance,</div></div><div><br></div><div>-J</div><div><br></div><div><div>----<br><img src="http://jrcresearch.net/blog/wp-content/uploads/2010/07/sig.gif" width="200" height="67"><br clear="all">

<br>J. R. Carroll<div><div>Independent Researcher through Hurtz Labs</div><div>Research Methods, Test Development, and Statistics</div><div><a href="http://www.jrcresearch.net/" target="_blank">www.jrcresearch.net</a></div>

<div><a href="http://www.ontvp.com" target="_blank">www.ontvp.com</a></div><div>Cell:  <a href="tel:%28650%29%20776-6613" value="+16507766613" target="_blank">(650) 776-6613</a></div><div>Email: <a href="mailto:jrcarroll@jrcresearch.net" target="_blank">jrcarroll@jrcresearch.net</a></div>
<div>          <a href="mailto:jrcarroll@hurtzlab.com" target="_blank">jrcarroll@hurtzlab.com</a></div>
<div>          <a href="mailto:jrc.csus@gmail.com" target="_blank">jrc.csus@gmail.com</a></div></div><div><a href="https://www.facebook.com/J.R.Car" target="_blank"><img src="http://officeimg.vo.msecnd.net/en-us/files/914/697/ZA102637861.gif"></a><a href="https://twitter.com/jNammer" target="_blank"><img src="http://officeimg.vo.msecnd.net/en-us/files/918/121/ZA102637858.gif"></a><a href="http://www.linkedin.com/in/jrcarroll" target="_blank"><img src="http://officeimg.vo.msecnd.net/en-us/files/739/234/ZA102637857.gif"></a></div>

<br></div><br>
</div>