Commit Graph

25 Commits

Author SHA1 Message Date
Dustin Sallings
d048124969 Capture the bound jid.
I'd kind of like to be able to discover the JID with full resource for
some operations.
2009-06-15 14:37:21 -07:00
Jack Moffitt
370a371800 Dual licensed libstrophe under MIT and GPLv3.
Updated copyright headers.
2009-06-15 15:26:10 -06:00
Dustin Sallings
690c0c1e85 Log the result of a connect. 2009-04-14 13:11:38 -07:00
Dustin Sallings
e852bfb62e If an altdomain was specified, use it instead of SRV lookups.
For whatever reason, SRV lookups are hanging for me for about 30
seconds making testing suck.
2009-04-14 13:11:38 -07:00
Dustin Sallings
3156f5044f Free the connection language.
This created a memory leak when freeing a connection.
2009-04-14 13:11:38 -07:00
Jack Moffitt
3fd7515dcf Abstracted XML parser library and switched to autotools building.
expat is still the default parser, but libxml2 can also be used
via an option to the configure script.  New parsers can easily be
added by implementing a parser_foo.c that uses the interface defined
in parser.h.
2009-04-14 13:47:20 -06:00
Matthew Wild
757d5bad74 + Add xmpp_conn_get_context() to get the ctx a connection belongs to. Fixes #10
* Properly use altdomain when no SRV record. Fixes #2
- Remove unused function declarations from strophe.h. Fixes #1
2008-09-18 03:56:08 +00:00
Jack Moffitt
2b8691f154 Documentation changes for SASL ANONYMOUS. 2008-08-24 16:09:31 +00:00
Jack Moffitt
3b47afaac9 Fix warnings and line endings from previous SRV commit. Get rid of domain parameter of xmpp_connect_client(). Remove usused handler.c helper left over from previous commit. 2008-07-03 05:20:59 +00:00
James Canete
561fac842c Add linux/unix version of SRV lookup.
Add some extra debugging when SRV lookup fails.
2008-07-03 04:32:28 +00:00
Jack Moffitt
65a174ee7e Most public API points are now documented. 2008-06-24 14:43:54 +00:00
Jack Moffitt
b6027cfd7f Updated copyright years and fixed LLC typo. 2008-06-19 22:33:13 +00:00
James Canete
6f9be5ef39 Add alternate domain and port to xmpp_client_connect() for when SRV lookups fail. 2008-05-14 20:48:48 +00:00
James Canete
f45380bb23 Added OpenSSL support.
Added win32-specific srv lookup support.
Extend session timeout to 15 seconds.
2007-09-05 20:01:24 +00:00
Jack Moffitt
fbb6a6b4c6 Implement stream:error handling. 2006-08-25 19:28:08 +00:00
Jack Moffitt
c52d0aaa28 Add new snprintf/vsnprintf implementation. This should fix the compability
problems between Win32 (with its broken implementation) and the standard
stdio API.  Also fixed a bug in debug output where long messages got
truncated to 1023 chars, and in xmpp_stanza_to_text where long stanzas
got truncated by one character.
2006-01-21 00:26:40 +00:00
Jack Moffitt
68c9a71774 Partial fix for #11. Correctly calls connection handler on timeout now,
but doesn't yet set the error.
2005-12-01 23:09:20 +00:00
Jack Moffitt
b992133987 Implement session establishment, which is required if the server
advertises it.  Fixes bugs relating to not-authorized errors on 
XMPP compliant servers.
2005-10-18 07:58:38 +00:00
Jack Moffitt
359c47ffdc Another pass at C++ification. 2005-08-02 20:18:14 +00:00
Jack Moffitt
e20fcb8ec4 Minor Win32 build fix. 2005-07-18 22:22:11 +00:00
Ralph Giles
64b85aadda Make the server argument optional. Passing a NULL domain arg to xmpp_connect_client()
now derives the domain from the jid.

Is it reasonable to just remove the 'domain' (more properly server) argument directly?
The library should always handle this and I can't think why you'd want to override unless
maybe if you have a proxy.
2005-06-29 15:23:51 +00:00
Ralph Giles
f2335adb75 Conform the copyright headers. 2005-06-29 14:38:24 +00:00
Jack Moffitt
fe4d7beb98 Fix minor memory bug. We were freeing the _next_ item's attributes,
instead of the current item's.
2005-06-28 23:19:16 +00:00
Ralph Giles
72699eff45 Rename xmpp.h to strophe.h and apply the name changes to the internal
header multiple include protection.
2005-06-14 14:25:42 +00:00
Ralph Giles
f27235b862 Move the xmpp library to its new name. 2005-06-14 14:10:31 +00:00