Le Tue, 21 Oct 2008 10:28:36 -0600, Peter Saint-Andre <[EMAIL PROTECTED]> a écrit :
> Justin Karneges wrote: > > On Monday 20 October 2008 11:42:39 Peter Saint-Andre wrote: > >> Alban Crequy wrote: > >>> I need to know all the contact capabilities in Telepathy, even if > >>> there is no open stream. If an application want to display a > >>> contact chooser to start a VNC session, a game, or whatever on > >>> top of XMPP, I need to know which contacts are able to do VNC or > >>> a specific game. > >>> > >>> I implemented an automatic caps lookup via disco in > >>> telepathy-salut (the XEP-0174 implementation in the Telepathy > >>> framework). It opens a stream only if a "ver" TXT record is > >>> advertised *and* if the "ver" record is not already known. > >> Right, I see the need for that. But it's unfortunate. > >> > >> Still thinking... > > > > One idea might be to use DNS-SD to share the disco information. > > Publish PTR records like > > _http://jabber.org/protocol/si/profile/filetransfer._xmpp.local. > > > > Maybe that would get out of hand, or not? > > Yes, I think that would get out of hand, but I think we'd need to > profile this in real life (i.e., how many records / disco features are > we talking about, how frequently would people ping contacts via > serverless messaging just to get the disco#info results, etc.). Telepathy-salut will expose the usual feature records in a Jabber client, and a feature record per Telepathy tube type (it may be VNC, a Tetris game, a Go game, a DAAP music player, etc.). It will not change the advertised caps often but when a new software using Telepathy tube is installed or started. It has a cache, so it will not ask twice for the same caps hash. But every contact may have different caps hash because the caps set depends not only on the version of Telepathy Salut but also on whether other software using tubes are installed. It will ask for contacts' caps when going online and when the contacts' advertised hashs change, even if there is no contact chooser window displayed at this moment. -- Alban
