# HG changeset patch # User Chris Jones # Date 1325358662 25200 # Node ID 33e7f25f1fd2dbbc946d188844fc7d10d3c84161 # Parent 4a06f7ccfa84dfd6151d0c0b47529ee7637580c2 Comment cleanup. diff -r 4a06f7ccfa84 -r 33e7f25f1fd2 stream.go --- a/stream.go Sat Dec 31 11:45:44 2011 -0700 +++ b/stream.go Sat Dec 31 12:11:02 2011 -0700 @@ -217,8 +217,6 @@ } } -// BUG(cjyar) Allow extensions to specify extended structs with -// corresponding namespaces via "func(xml.Name) Stanza". // BUG(cjyar) Allow extensions to provide filters in the form of "in // chan<- Stanza, out <-chan Stanza". func (cl *Client) readStream(srvIn <-chan interface{}, cliOut chan<- Stanza) { @@ -556,6 +554,7 @@ } // BUG(cjyar) This should use iq.nested rather than iq.generic. + // Send a request to bind a resource. RFC 3920, section 7. func (cl *Client) bind(bind *Generic) { res := cl.Jid.Resource diff -r 4a06f7ccfa84 -r 33e7f25f1fd2 structs.go --- a/structs.go Sat Dec 31 11:45:44 2011 -0700 +++ b/structs.go Sat Dec 31 12:11:02 2011 -0700 @@ -76,6 +76,8 @@ Any *Generic } +// BUG(cjyar) Change XTo() to GetTo(), etc. + // One of the three core XMPP stanza types: iq, message, presence. See // RFC3920, section 9. type Stanza interface { @@ -242,6 +244,9 @@ return buf.Bytes(), nil } +// BUG(cjyar) We can probably eliminate this if we use an +// appropriately-tagged XMLName field. + func (e *errText) MarshalXML() ([]byte, os.Error) { buf := bytes.NewBuffer(nil) buf.WriteString("