Dmitry Podgorny
e60895087e
event: let event loop start after xmpp_stop()
2016-04-13 10:25:15 +00:00
Dmitry Podgorny
182803926b
conn: added new API xmpp_conn_set_flags()
...
xmpp_conn_set_flags() and xmpp_conn_get_flags() unify interface of
connection configuration.
This interface allows compile-time check of supported features or even
run-time check. Therefore, applications can be built with older
libstrophe which doesn't support some optional flags.
2015-10-15 16:01:13 +03:00
Dmitry Podgorny
36af7afa27
conn: implemented old-style SSL connection
...
Added new API xmpp_conn_set_old_style_ssl(). This function forces
using of old-style SSL connection.
2015-10-12 22:25:39 +03:00
Codewalker
f62d817c71
Fix error spam in event loop when no connections are open.
...
On Win32 at least, select() will immediately fail with an error if
there are no file descriptors to wait for (max == 0). In the simple case
of a single XMPP session and an event loop that runs only while the
connection is open, this isn't a problem, but doesn't work for more
complex scenarios.
Add some handling so that if xmpp_run_once is called and there are no
active connections, simply sleep for duration of the timeout and
return.
2014-12-24 12:08:05 -06:00
Codewalker
b753e6cf18
Fix a bug where select() could fail due to negative max socket fd.
...
Connection objects in the disconnected state should not have their
fd taken into account when determining the maximum socket fd number,
as they are not set in the bitmask with FD_SET, and their fd could
be anything, even a wildly large or small number.
2014-12-24 12:04:39 -06:00
Dariusz Dwornikowski
71f75b2e2e
Closes #31
2014-10-23 08:44:52 +02:00
Vlad-Mihai Sima
511606835d
Bug fix: when using tls, if a stanza is bigger than the buffer of 4096 in event.c, the stanza will not be read as select will return 0 on the ssl socket and the data will be in ssl buffers. Partial fix, only for Linux for now
2012-01-01 20:09:18 +01:00
Jack Moffitt
370a371800
Dual licensed libstrophe under MIT and GPLv3.
...
Updated copyright headers.
2009-06-15 15:26:10 -06:00
Jack Moffitt
a58b0e4b04
Patch to fix select time values from xue yong zhi <xue.yong.zhi@gmail.com> applied.
2009-05-05 13:29:01 -06: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
Jack Moffitt
cb0ae178ee
Remove spurious error notices on EINTR and EAGAIN in xmpp_run_once().
2008-12-09 13:57:43 -07: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
ce235002c5
Fix bugs with large (>16384 bytes) sends with tls.
2008-05-14 21:09:31 +00:00
James Canete
dd86aedd19
Force schannel to use RC4 to get around an schannel DES bug.
...
Fix a bug where a failed tls_start would cause a loop.
Moved static variables in schannel into the tls struct.
2007-11-15 03:12:18 +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
151c74a5ae
Minor fix to includes and error names.
2006-01-17 18:08:28 +00:00
James Canete
b54517f6aa
Fix a typo, WSAETIMEOUT -> WSAETIMEDOUT
2006-01-11 00:37:55 +00:00
Jack Moffitt
ddd356e726
Fix problem with sending if no data at all could be sent.
2006-01-05 03:39:18 +00:00
Jack Moffitt
5403b39950
Set connection error correctly on read/write errors. Final bit for
...
fix of #10 .
2005-12-01 23:43:53 +00:00
Jack Moffitt
18f54e2fc5
Finish fix for #11 . ETIMEOUT/WSAETIMEDOUT error code set on connection
...
timeout.
2005-12-01 23:31:02 +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
003b0528cd
Add disconnection notification on send/recv errors.
2005-11-19 22:05:00 +00:00
Jack Moffitt
359c47ffdc
Another pass at C++ification.
2005-08-02 20:18:14 +00:00
Ralph Giles
6a1b2cada9
Also call the connection handler callback if a connection attempt fails.
...
Otherwise there's no way for the client to stop the event loop and/or
retry.
2005-06-29 15:25:08 +00:00
Ralph Giles
76e0c6a4b3
Add the 'libstrophe' name to the copyright headers.
2005-06-15 16:58:11 +00:00
Jack Moffitt
e6fa890d3d
Minor fixes for Win32 build. It now builds, but doesn't link.
2005-06-14 22:35:15 +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