<?xml version="1.0"?>
<!-- These are the examples for XSF XEP-0037: DSPS - Data Stream Proxy Service-->
<stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en"><!-- Example 1-->
<iq
  id='dsps1'
  type='get'
  from='rob@nauseum.org/dspsclient' 
  to='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a44'>
  <query type='create' 
    xmlns='jabber:iq:dsps'
    minthroughput='1.5KB'
    maxpublic='20'>
    <peer port='5290'>
      dsps.myjabber.net/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
    </peer>
    <comment>public comment</comment>
  </query>
</iq>
<!-- Example 2-->
<iq
  id='dsps1' 
  type='result'
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33' 
  to='rob@nauseum.org/dspsclient'>
  <query type='create' xmlns='jabber:iq:dsps'
    wait='10'
    host='dsps.jabber.org'
    port='5290'
    minthroughput='1.5KB'
    protocol='0.5'>
    <feature type='http' version='1.1'/>
    <feature type='ssl' version='3.0'/>
  </query>
</iq>
<!-- Example 3-->
<iq
  id='dsps1'
  type='get'
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
  to='rob@nauseum.org/dspsclient'>
  <query type='create' xmlns='jabber:iq:dsps'>acDgH63I27Gb1</query>
</iq>
<!-- Example 4-->
<iq
  id='dsps1'
  type='result'
  from='rob@nauseum.org/dspsclient'
  to='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
  <query type='create' xmlns='jabber:iq:dsps'>acDgH63I27Gb1</query>
</iq>
<!-- Example 5-->
GET /DSPS/STREAM/ HTTP/1.0<CR>
Host: dsps.server<CR>
<CR>
<!-- Example 6-->
HTTP/1.0 200 OK<CR>
Content-Type: application/octet-stream<CR>
<CR>
<!-- Example 7-->starttls<CR><!-- Example 8-->Client_full_JID DSPS_full_JID<CR><!-- Example 9-->rob@nauseum.org/dspsclient dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33<!-- Example 10-->uGhhb74d21<!-- Example 11-->
<iq
  id='dsps1'
  type='get'
  from='rob@nauseum.org/dspsclient'
  to='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'>
  <query type='auth' xmlns='jabber:iq:dsps'>uGhhb74d21</query>
</iq>
<!-- Example 12-->
<iq
  id='dsps1'
  type='result'
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
  to='rob@nauseum.org/dspsclient'
  <query type='auth' xmlns='jabber:iq:dsps'>qgqB42Ij784</query>
</iq>
<!-- Example 13-->
  <iq
  id='dsps2'
  type='set'
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
  to='foo@bar.com/resource'>
  <query type='presence' xmlns='jabber:iq:dsps'>
  <peer status='connect'>JID</peer>
  </query>
</iq>
<!-- Example 14-->
<iq
  id='dsps3' 
  type='set'
  from='rob@nauseum.org/dspsclient' 
  to='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'>
  <query type='admin' xmlns='jabber:iq:dsps' expire='20' wait='10'>
    <comment>welcome to the stream</comment>
    <peer type='master'>someone@somewhere.net</peer>
  </query>
</iq>
<!-- Example 15-->
<iq
  id='dsps3'
  type='result'
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
  to='user@server.org/resource'>
  <query type='admin' xmlns='jabber:iq:dsps'>
    <peer acknowledge='expire'>abc@company.com/net</peer>
    <peer acknowledge='reject'>friend@someplace.com/home</peer>
    <peer acknowledge='timeout'>abd@company.com/net</peer>
    <peer acknowledge='missing'>who@knows.org/winjab</peer>
  </query>
</iq>
<!-- Example 16-->
<iq
  id='dsps4' 
  type='get'
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33' 
  to='foo@bar.com/resource'>
  <query type='acknowledge' 
    xmlns='jabber:iq:dsps'
    status='master'
    expire='20'>
    <peer>rob@nauseum.org/dspsclient</peer>
    <comment>some long comment block or structure</comment>
  </query>
</iq>
<!-- Example 17-->
<iq 
  id='dsps5'
  type='set' 
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
  to='foo@bar.com/resource'>
  <query type='acknowledge' xmlns='jabber:iq:dsps' status='drop'>
    <comment>some long comment block or structure</comment>
  </query>
</iq>
<!-- Example 18-->
<iq
  id='dsps6' 
  type='set'
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33' 
  to='foo@bar.com/resource'>
  <query type='presence' xmlns='jabber:iq:dsps'>
    <peer status='drop'>JID</peer>
  </query>
</iq>
<!-- Example 19-->
<iq
  id='dsps4' 
  type='result'
  from='foo@bar.com/moredsps' 
  to='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33>
  <query type='acknowledge' xmlns='jabber:iq:dsps' status='connect'/>
</iq>
<!-- Example 20-->
<iq
  id='dsps4' 
  type='result'
  from='foo@bar.com/moredsps' 
  to='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33>
  <query type='acknowledge' xmlns='jabber:iq:dsps' status='drop'/>
</iq>
<!-- Example 21-->
<iq 
  id='dsps7'
  type='set' 
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
  to='foo@bar.com/resource'>
  <query type='presence' xmlns='jabber:iq:dsps'>
    <peer status='waiting'>JID</peer>
  </query>
</iq>
<!-- Example 22-->0<size><CR><id><CR><data><!-- Example 23-->
0340<CR>
010<CR>
this is the data in ASCII form
<!-- Example 24-->
<iq
  id='dsps8' 
  type='get'
  from='rob@nauseum.org/dspsclient' 
  to='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'>
  <query type='who' xmlns='jabber:iq:dsps'/>
</iq>
<!-- Example 25-->
<iq 
  id='dsps8'
  type='result' 
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
  to='rob@nauseum.org/dspsclient'>
  <query type='who' xmlns='jabber:iq:dsps'>
    <peer 
      type='master'
      id='0'
      status='connect'
      throughput='1KB////4.8KB//3KB'>
      rob@nauseum.org/dspsclient
    </peer>
  </query>
</iq>
<!-- Example 26-->
<iq 
  id='dsps9'
  type='get' 
  from='rob@nauseum.org/dspsclient'
  to='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'>
  <query type='stats' xmlns='jabber:iq:dsps'/>
</iq>
<!-- Example 27-->
<iq
  id='dsps9' 
  type='result'
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33' 
  to='rob@nauseum.org/dspsclient'>
  <query type='stats' xmlns='jabber:iq:dsps'
    init='00000000000000'
    protocol='0.5'
    port='5290'
    minthroughput='1.5KB'
    expiredefault='150'
    waitdefault='100'
    wait='10'
    public='5'
    maxpublic='25'
    mastercount='20'
    slavecount='40'
    relaycount='0'>
    <feature type='http' version='1.1'/>
    <feature type='ssl' version='3.0'/>
    <peer>mydsps@jabber.org/8xd67f56df4f546fdgsfdg65f6g58f</peer>
    <comment>some server comment</comment>
  </query>
</iq>
<!-- Example 28-->
<iq
  id='dsps9'
  type='error'
  from='dsps.jabber.org/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
  to='rob@nauseum.org/dspsclient'>
  <error code='405'>Method Not Allowed</error>
</iq>
</stream>

