stream.go
changeset 83 a264cb0129e2
parent 82 7ce2432dd66a
child 84 25c4296a3524
equal deleted inserted replaced
82:7ce2432dd66a 83:a264cb0129e2
    34 	f func(Stanza) bool
    34 	f func(Stanza) bool
    35 }
    35 }
    36 
    36 
    37 // BUG(cjyar): There's no way to specify xml:lang for the top-level
    37 // BUG(cjyar): There's no way to specify xml:lang for the top-level
    38 // <stream:stream> element as the default language for this client.
    38 // <stream:stream> element as the default language for this client.
       
    39 
       
    40 // BUG(cjyar): We SHOULD send a text declaration before the "open
       
    41 // stream" element.
    39 
    42 
    40 // Generate the "open stream" element which tells the remote we want
    43 // Generate the "open stream" element which tells the remote we want
    41 // to speak XMPP. This is actually done 3 times, since we renegotiate
    44 // to speak XMPP. This is actually done 3 times, since we renegotiate
    42 // our transport layer with TLS and then with SASL.
    45 // our transport layer with TLS and then with SASL.
    43 func openStream(jid *JID) *stream {
    46 func openStream(jid *JID) *stream {