From df83f66e69ab9a32835bc1c15173d73e33a42f45 Mon Sep 17 00:00:00 2001 From: Peter Saint-Andre Date: Tue, 13 Apr 2010 20:27:25 +0000 Subject: [PATCH] 0.4 git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@4158 4b5297f7-1745-476d-ba37-a9c6900126ab --- xep-0261.xml | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/xep-0261.xml b/xep-0261.xml index 519abd9a..c0206391 100644 --- a/xep-0261.xml +++ b/xep-0261.xml @@ -22,6 +22,12 @@ jingle-ibb jingle &stpeter; + + 0.4 + 2010-04-13 + psa +

Added roundtrip for exchange of IBB <open/> element to provide proper layering between Jingle and IBB; defined how to close a single session within the bytestream; defined how to close the bytestream itself.

+
0.3 2010-02-16 @@ -73,6 +79,10 @@ Initiator Responder |<---------------------------| | ack | |--------------------------->| + | IBB | + |--------------------------->| + | ack | + |<---------------------------| | IBB "SESSION" | |<==========================>| | session-terminate | @@ -135,7 +145,26 @@ Initiator Responder to='juliet@capulet.lit/balcony' type='result'/> ]]> -

The foregoing Jingle negotiation replaces the <open/> element from XEP-0047. Therefore the initiator can now immediately begin sending IBB packets using an IQ-set for each chunk as described in XEP-0047, where the responder will acknowledge each IQ-set in accordance with &rfc3920;.

+

In essence, the foregoing Jingle negotiation replaces the <open/> element from XEP-0047. However, to provide consistent layering of Jingle on top of IBB (thus enabling separation of existing IBB code from new Jingle code), the initiator now MUST also send the <open/> element, with the same 'block-size' and 'sid' values as for the Jingle <transport/> element. This adds a roundtrip to the negotiation and could be considered a "no-op", but the extra roundtrip is inconsequential given that the parties are exchanging base64-encoded data in-band.

+ + + + ]]> +

The responder returns an IQ-result to the initiator.

+ + ]]> +

Now the initiator can begin sending IBB packets using an IQ-set for each chunk as described in XEP-0047, where the responder will acknowledge each IQ-set in accordance with &rfc3920;.

Here the Jingle Session ID is the same ("a73sjjvkla37jfea") but the new IBB Session ID ("bt8a71h6") is different from the old IBB Session ID that is already in use ("ch3d9s71").

+ +

To close one session within a bytestream, the initiator sends an IBB <close/> element as specified in XEP-0047.

+

To close the bytestream itself, the initiator terminates the Jingle session as specified in XEP-0166.

+
+

The same processing rules and usage guidelines defined in XEP-0047 apply to the Jingle IBB Transport Method.

@@ -305,4 +339,8 @@ Initiator Responder ]]> + +

Thanks to Paul Aurich, Fabio Forno, and Marcus Lundblad for their feedback.

+
+