XEP-0047: In-Band Bytestreams

In-Band Bytestreams (IBB)
http://xmpp.org/extensions/xep-0047.html

1. Initiator requests session
<iq from='[email protected]/orchard'
    id='jn3h8g65'
    to='[email protected]/balcony'
    type='set'>
  <open xmlns='http://jabber.org/protocol/ibb'
        block-size='4096'
        sid='i781hf64'
        stanza='iq'/>
</iq>


2. Responder accepts session
<iq from='[email protected]/balcony'
    id='jn3h8g65'
    to='[email protected]/orchard'
    type='result'/>


3. Sending data in an IQ stanza
<iq from='[email protected]/orchard' 
    id='kr91n475'
    to='[email protected]/balcony'
    type='set'>
  <data xmlns='http://jabber.org/protocol/ibb' seq='0' sid='i781hf64'>
    qANQR1DBwU4DX7jmYZnncmUQB/9KuKBddzQH+tZ1ZywKK0yHKnq57kWq+RFtQdCJ
    WpdWpR0uQsuJe7+vh3NWn59/gTc5MDlX8dS9p0ovStmNcyLhxVgmqS8ZKhsblVeu
    IpQ0JgavABqibJolc3BKrVtVV1igKiX/N7Pi8RtY1K18toaMDhdEfhBRzO/XB0+P
    AQhYlRjNacGcslkhXqNjK5Va4tuOAPy2n1Q8UUrHbUd0g+xJ9Bm0G0LZXyvCWyKH
    kuNEHFQiLuCY6Iv0myq6iX6tjuHehZlFSh80b5BVV9tNLwNR5Eqz1klxMhoghJOA
  </data>
</iq>


4. Acknowledging data using IQ
<iq from='[email protected]/balcony'
    id='kr91n475'
    to='[email protected]/orchard'
    type='result'/>


5. Closing the bytestream
<iq from='[email protected]/orchard'
    id='us71g45j'
    to='[email protected]/balcony'
    type='set'>
  <close xmlns='http://jabber.org/protocol/ibb' sid='i781hf64'/>
</iq>


6. Success response
<iq from='[email protected]/balcony'
    id='us71g45j'
    to='[email protected]/orchard'
    type='result'/> 




你可能感兴趣的:(html,xml)