Matt Goodall
c315cb9d49
Fix un-golang names (mostly case).
2017-04-14 12:21:45 +01:00
Matt Goodall
19c81df5d6
Simplify. Remove unused/unreachable code.
2017-03-30 20:53:36 +01:00
Matt Goodall
9ba9dcbe86
go fix. Clearly, I need to run this more often ;)
2012-07-18 11:40:36 +01:00
Matt Goodall
82015bcab4
Collect and consolidate namespaces.
2012-07-18 11:36:59 +01:00
Matt Goodall
1ab83b491b
Add component handshake stanza namespace.
2012-07-12 01:17:27 +01:00
Matt Goodall
f97ed9ea37
Remove element name match test from Stream.Next().
...
Only one place still used it, so it might as well go.
2012-07-12 00:48:44 +01:00
Matt Goodall
318a97947b
Read incoming start element explicit part of sending outgoing start element.
2012-07-11 23:24:32 +01:00
Matt Goodall
6b01a7f10c
Cleanly detect & signal end of stream, and fix code above.
2012-07-09 15:01:15 +01:00
Matt Goodall
c9c8526476
Separate stream creation from XMPP use (client, component, etc).
...
The address of the server is not necessarily related to the JID, e.g.
DNS SRV lookups, manual configuration, etc. Splitting them up means
there's more control and flexibility over how things are put together.
We can always add convenience funcs later, e.g. something like
DialClient(jid, password), to handle the common case.
2012-07-08 23:33:37 +01:00
Matt Goodall
5399179d50
Represented SASL message and TLS handshake value as chardata.
2012-07-08 23:01:08 +01:00
Matt Goodall
b9e29ca2b3
Make the stream's API more explicit, add some docs, improved var names.
2012-07-08 22:40:31 +01:00
Matt Goodall
23aeb1fd68
Associate a JID with an XMPP instance.
...
Client connections negotiate a bound resource JID with the server. The
bound JID may be different from the one requested or even generated by
the server.
Component connections do not negotiate the bound JID but still have a
specific JID associated with the stream.
2012-07-08 12:18:51 +01:00
Matt Goodall
678b9c48a1
Make Stream public again, so we actually get some documentation for it.
2012-07-06 14:29:15 +01:00
Matt Goodall
72dc222360
Make the stream struct private. Rename factory func.
2012-07-06 11:47:15 +01:00
Matt Goodall
627364727e
The client and component connections are really just streams too.
...
Only difference is how they're setup. After that, it's the common iq,
message, presence stuff ... to come soon.
2012-07-06 11:47:15 +01:00
Matt Goodall
4e7d9e68d1
Move xml declaration to stream.
2012-06-27 13:15:11 +01:00
Matt Goodall
7cf14c4f35
Add component API and example.
2012-06-27 13:14:18 +01:00