Matt Goodall
6416a5e1ee
Resource binding bugs, so I don't forget.
2012-07-09 00:37:21 +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
f1c999d623
Move the XMPP-specific part of TLS out of the XML stream.
2012-07-08 22:50:10 +01:00
Matt Goodall
0a11fbb155
Remove debug log.
2012-07-08 22:41:34 +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
ce72493a2f
Implement client resource binding.
2012-07-08 12:18:51 +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
359c6a324b
Document the client config.
2012-07-06 11:07:42 +01:00
Matt Goodall
2426f2d6d1
Rename JID.Local to JID.Node to better match official XEP.
2012-07-06 11:04:59 +01:00
Matt Goodall
b908366544
Extract startClient function.
2012-06-27 13:16:11 +01:00
Matt Goodall
4e7d9e68d1
Move xml declaration to stream.
2012-06-27 13:15:11 +01:00
Matt Goodall
fe67025b94
Don't expose client struct.
2012-06-27 12:10:22 +01:00
Matt Goodall
a793114fdf
Basic XMPP client with TLS and SASL.
2012-06-27 12:05:07 +01:00