summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-09-27 19:04:16 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-09-27 19:04:16 +0000
commitb0205fb4735c4c98380f94c016430ec809c15306 (patch)
treea048ef4c1b21d6878233335ea1abc9f78447c68d /docs
parente616039cbcb0cb8111657ea10dacb108d3592b44 (diff)
downloadtelepathy-gabble-b0205fb4735c4c98380f94c016430ec809c15306.tar.gz
Allow both initiator and non-initiator to close 1-1 stream tubes
20070927190416-53eee-723935da3fdc087372ffcb49222717872ffc1871.gz
Diffstat (limited to 'docs')
-rw-r--r--docs/tubes.xml20
1 files changed, 16 insertions, 4 deletions
diff --git a/docs/tubes.xml b/docs/tubes.xml
index d19af8a0d..c46d8756e 100644
--- a/docs/tubes.xml
+++ b/docs/tubes.xml
@@ -410,14 +410,26 @@
SI streams as shown above, and Romeo's XMPP implementation will open
multiple parallel connections to his web server. This MUST be
supported by implementations.</p>
- <example caption='Leaving a tube'>
+ <example caption='Leaving a tube (initiator)'>
<![CDATA[
<!-- Romeo stops offering the stream tube.
- He SHOULD close the stream first, if possible - assume this has
- already been done. -->
+ He SHOULD close all streams first. If not, Juliet SHOULD
+ close all streams when this message is received. -->
<message to='juliet@capulet.lit/Balcony'
from='romeo@montague.lit/Home'>
- <close xmlns='http://telepathy.freedesktop.org/xmpp/protocol/tubes'>
+ <close xmlns='http://telepathy.freedesktop.org/xmpp/protocol/tubes'
+ tube='1402'/>
+ </message>
+ ]]>
+ </example>
+ <example caption='Leaving a tube (non-initiator)'>
+ <![CDATA[
+ <!-- Alternatively, Juliet could reject the stream tube.
+ She SHOULD close all streams first. If not, Romeo SHOULD close all
+ streams in response to this message. -->
+ <message from='juliet@capulet.lit/Balcony'
+ to='romeo@montague.lit/Home'>
+ <close xmlns='http://telepathy.freedesktop.org/xmpp/protocol/tubes'
tube='1402'/>
</message>
]]>