[avahi] dynamic response

Trent Lloyd lathiat at bur.st
Fri Nov 25 04:25:04 PST 2005


On Thu, Nov 24, 2005 at 07:01:14PM -0800, David (Dalei) Liu wrote:
> Hi,
> 
> I'm new to Avahi.  May I ask an architecture question about it?
> 
> Now I'm trying to develop an application to use mDNS.  Basically, a
> client will send out a request like _uniqueid._myservice._tcp.local.
> and expect a response based on the <uniqueid>.  The answer in the
> response does not exist until the server receives this request. 
> Within avahi-daemon, is there any existing interface to implement such
> service?

I don't really understand what you mean, could you please explain
exactly what you are trying to do so I can get a better grasp on what
you mean?

> From the documents, seems dbus is a one-way interface that
> we can only publish service information to the server.  Is it correct?

No, that is incorrect, avahi exposes a very complete API over dbus
including both resolving, browsing and publishing.

You may want to check out the example programs, and also the DBUS
introspect files if you plan to use DBUS from a language (and not C,
where we have an API, there are good python examples too)

Cheers,
Trent

> 
> Thanks a lot in advance.
> 
> Regards,
> David
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi

-- 
Trent Lloyd <lathiat at bur.st>
Bur.st Networking Inc.


More information about the avahi mailing list