As well, the text doesn't adequately specify the translation from XML to
binary.  I would recommend text like:

To convert from traditional XMPP to bxmpp, the UTF-8 encoded representation
that would have been transmitted is converted an octet at a time into a
binary representation.  Each input octet (with value from 0-255) MUST be
converted into exactly 8 XML elements (with value of <zero/> or <one/>),
with the most significant bit coming first.  For example, to send the
character '>', it is UTF-8 encoded octet with decimal value 62, which turns
into the XML representation of 00111110:
<zero/><zero/><one/><one/><one/><one/><one/><zero/>.


On 4/1/08 7:18 AM, "Tomasz Sieprawski" <[EMAIL PROTECTED]> wrote:

> Imo there shall be a bootstraping protocol for existing clients, that
> when it connects to non-binary xmpp server, it could init binary flow!
> 
> C: <stream:stream to='some.servur' version='1.0' ... blablabla>
> S: <stream:stream from='some.servur' version='1.0' ... blablabla>
> S: <stream:features>
>       <starttls/>
>       <binary xmlns='urn:xmpp:binary'/>
> </stream:features>
> C: <enable xmlns='urn:xmpp:binary'/>
> S: <enabled xmlns='urn:xmpp:binary'/>
> [and from here binary flow]
> 
> Tomasz "DeSnajpa" Sieprawski


Reply via email to