-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/29/13 11:02 AM, Dave Cridland wrote: > On Tue, Oct 29, 2013 at 4:47 PM, Spencer MacDonald > <spencer.macdonald.ot...@gmail.com > <mailto:spencer.macdonald.ot...@gmail.com>> wrote: > > >> I think a simple buffer protocol would do, with a way of clients >> specifying what type of packets (like SIFT) which would cause a >> server flush... but due to the limitations on iOS that would >> probably only be Jingle. > > Is there something in SIFT that doesn't meet the requirements? For > instance, does it need to say that filtered / intercepted stanzas > are indeed buffered? > > > Thats correct, compared to SIFT I want: > > - All stanzas to be buffered by the server - On receiving an > "allowed" element the server should flush its buffer upto and > including that stanza, opposed to just letting that stanza > through. > > > > What worries me about SIFT is that it's too complex, and too open > ended. > > By too complex, I mean both that it relies on XPath processing by > the server, and also it relies on complex rule creation by the > client. We can remove the former by simply matching the immediate > child elements of a stanza against namespace and element local > name, which at least reduces it to one or two string compares, but > I still think it'll require a lot of work by client developers to > use it effectively. In any case, file transfers will end up being > treated like voice calls by their nature. > > By contrast, XEP-0334 does the work elsewhere. I've an odd > suspicion that most hints will be added by a server, actually. The > difficulty here is that we can hint message and presence stanzas, > though the latter isn't in XEP-0334, but we have no similar > solution for hinting IQ stanzas. Disco (and caps) tend to work > effectively for suppressing entirely unwanted IQ traffic, but for > hinting that buffering is acceptable, we'd need some other > mechanism. Of course, for Jingle, this could be a nice byproduct of > using message stanzas for the session-initiate.
Simpler is better. Do message hints apply only to <message/> stanzas? We'll also want some kind of presence hush. Peter - -- Peter Saint-Andre https://stpeter.im/ -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.19 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSb+rbAAoJEOoGpJErxa2pEu0P/ix1ThOrr6x0tNdL8C/Yr/LL TrfAEn0SzugZiFO1y+SNGW9tfq/rDJlL3nPDbrBUgi/URCPUAFldyYC8IFURX3sU YRSJIKgAQahWk4I1hmzgAuaIstZXIi6PtkyVmqStrjselYzl+/tRrsow6UFVNGth Bgxz9FkOgTzb6qY8y0yHrbm4Xo4NPP13LmbrhIgOMo98xPTYPAnh8BcRRCiCuxd1 L7ge/toy7VHx+vg/FnIQyrahzXUwdXTy0Mwi2P2VTt61Nu7QlVu5CObAluIGRf8o X7Zb9A7zVqJvFIsPURNZafrG4+BHDcZ6121OQ+Xcbob7/j4f1dq1hadcOvsqbA7M U31xuXXbp2ytaEQwIgV7OzosrKn2iB9CEFb9EpoPDb0TtHkY/r0x6jIqqfFnAhLc y7C1UAO0aabKlPARTkibwvTyhsD02RY5Lq03pcsYF/DhGVonyR+KCeRXH67uYNqd cZTat5vS2aMG9hVsKvyN0YJyWh01yxEwgbrKN/DsFWaisTYKkHXJJYA35m9AGvnX vfT0/26tex38ug0pw04TeVtz39BwJ6ZF/BD2WnKJVAmv+IFwaz9Zc7GTPk91kyST J6TymFmIVlLGCj2y1kTirSME5HCbmjB54G0M/wNEE+oL6eAYOWDKk+0WYetDgqzX M0sgVpeS0JU+UgYGagpI =ubNS -----END PGP SIGNATURE-----