Index: 0047/jep-0047.xml
===================================================================
RCS file: /home/cvs/jeps/0047/jep-0047.xml,v
retrieving revision 1.27
diff -u -p -r1.27 jep-0047.xml
--- 0047/jep-0047.xml	17 Jan 2006 16:50:33 -0000	1.27
+++ 0047/jep-0047.xml	26 Jan 2006 20:20:05 -0000
@@ -16,6 +16,7 @@
   <dependencies>
     <spec>XMPP Core</spec>
     <spec>JEP-0079</spec>
+    <spec>JEP-0030</spec>
   </dependencies>
   <supersedes/>
   <supersededby/>
@@ -25,6 +26,12 @@
   <shortname>ibb</shortname>
   &infiniti;
   <revision>
+    <version>1.1</version>
+    <date>2005-12-21</date>
+    <initials>js</initials>
+    <remark>Updated to use Service Discovery.</remark>
+  </revision>
+  <revision>
     <version>1.0</version>
     <date>2003-12-10</date>
     <initials>psa</initials>
@@ -88,15 +95,36 @@
 <p>IBB is a generic bytestream, and so its usage is left open-ended.  It is likely to be useful for sending small payloads, such as files that would otherwise be too cumbersome to send as an instant message (such as a text file) or impossible to send (such as a small binary image file).  It could also be useful for any kind of low-bandwidth activity, such as a chess game or a shell session.  And, while it is mostly intended as a fallback in situations where a &jep0065; is unavailable, IBB could be more desirable for many of the simple bytestream use-cases that do not have high bandwidth requirements.</p>
 </section1>
 
+<section1 topic='Discovering Support' anchor='discover'>
+  <p>In order to discover whether a contact supports this protocol, one uses &jep0030;.</p>
+  <example caption='User Requests Service Discovery Information'><![CDATA[
+    <iq type='get' to='juliet@capulet.com/chamber'>
+      <query xmlns='http://jabber.org/protocol/disco#info'/>
+    </iq>
+  ]]></example>
+  <example caption='Client Reply to Discovery Request'><![CDATA[
+    <iq type='result'
+        from='juliet@capulet.com/chamber'
+        to='romeo@montague.net/orchard'>
+      <query xmlns='http://jabber.org/protocol/disco#info'/>
+        ...
+        <feature var='http://jabber.org/protocol/ibb'/>
+        ...
+      </query>
+    </iq>
+  ]]></example>
+  <p>If the contact's client supports this protocol, it MUST return a &lt;feature/&gt; element in the disco result with the 'var' attribute set to the namespace name for this protocol: 'http://jabber.org/protocol/ibb'.</p>
+</section1>
+
 <section1 topic='Implementation'>
   <section2 topic='Creating a bytestream'>
 
 <example caption='Initiation of Interaction'><![CDATA[
-<iq type='set' 
+<iq type='set'
     from='romeo@montague.net/orchard'
     to='juliet@capulet.com/balcony'
     id='inband_1'>
-  <open sid='mySID' 
+  <open sid='mySID'
         block-size='4096'
         xmlns='http://jabber.org/protocol/ibb'/>
 </iq>
@@ -105,7 +133,7 @@
 <p>This asks Juliet if she would like to form an In-Band Bytestreams connection, using the session ID 'mySID' (generated by the initiator here) to uniquely reference the bytestream.  The 'block-size' attribute specifies the maximum amount of data (in bytes) that an IBB packet may contain.</p>
 
 <example caption='Success Response'><![CDATA[
-<iq type='result' 
+<iq type='result'
     from='juliet@capulet.com/balcony'
     to='romeo@montague.net/orchard'
     id='inband_1'/>
@@ -114,7 +142,7 @@
 <p>This is a success response from juliet@capulet.com/balcony, saying that the bytestream is active.</p>
 
 <example caption='Error'><![CDATA[
-<iq type='error' 
+<iq type='error'
     from='juliet@capulet.com/balcony'
     to='romeo@montague.net/orchard'
     id='inband_1'/>
@@ -167,7 +195,7 @@
 <p>To close the bytestream, send the following:</p>
 
 <example caption='Closing the bytestream'><![CDATA[
-<iq type='set' 
+<iq type='set'
     from='romeo@montague.net/orchard'
     to='juliet@capulet.com/balcony'
     id='inband_2'>
@@ -176,7 +204,7 @@
 ]]></example>
 
 <example caption='Success response'><![CDATA[
-<iq type='result' 
+<iq type='result'
     from='juliet@capulet.com/balcony'
     to='romeo@montague.net/orchard'
     id='inband_2'/>
@@ -185,7 +213,7 @@
 <p>This is a success response from juliet@capulet.com/balcony, saying that the bytestream is now closed.</p>
 
 <example caption='Possible error'><![CDATA[
-<iq type='error' 
+<iq type='error'
     from='juliet@capulet.com/balcony'
     to='romeo@montague.net/orchard'
     id='inband_2'>
@@ -225,7 +253,7 @@
 
 <section1 topic='Jabber Registrar Considerations'>
   <section2 topic='Protocol Namespaces'>
-    <p>The &REGISTRAR; shall register the 'http://jabber.org/protocol/ibb' namespace as a result of this JEP.</p> 
+    <p>The &REGISTRAR; shall register the 'http://jabber.org/protocol/ibb' namespace as a result of this JEP.</p>
   </section2>
 </section1>
 
