Commit Graph

28 Commits

Author SHA1 Message Date
Matt Goodall c315cb9d49 Fix un-golang names (mostly case). 2017-04-14 12:21:45 +01:00
Matt Goodall 519c5a1846 Fix typos in comments. 2017-04-14 12:14:36 +01:00
Matt Goodall 9a399bd692 Fix log message. 2017-03-30 20:40:06 +01:00
Chteufleur e4acd3d349 Add Close method on *XMPP. 2016-10-05 21:23:56 +02:00
Chteufleur f1443ca444 Change position of close XMPP receiver log. 2016-09-18 07:38:18 +02:00
Chteufleur 97363908e1 Remove all log.Fatal() that make exit(1) any application that use this lib. 2016-09-04 14:49:59 +02:00
Chteufleur 6859516f81 Add log when threads « sender » and « receiver » end. 2016-08-20 22:43:20 +02:00
Matt Goodall 8bb5c81347 Implement XMPP closing. 2012-07-18 16:30:44 +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 dde0afb688 Document more of the XMPP API. 2012-07-18 11:22:59 +01:00
Matt Goodall c1da50ce26 Organise code into better logical groups. 2012-07-18 11:22:59 +01:00
Matt Goodall cc012762e9 Replace Send/Recv funcs with In/Out channels.
Basically, make the channels public and just let the client handle a
stream/net error if it's interested.

This simplifies the API a little and also allows an application to
select {} from the XMPP channel and any other channels at the same time.
2012-07-18 11:22:59 +01:00
Matt Goodall 91b33a0f3d Mention a couple of bugs to fix at some point. 2012-07-16 16:04:46 +01:00
Matt Goodall b439198518 Convert FilterFn into the Matcher/MatcherFunc interface/adapter pair.
"Matcher" is a better name for how it's used. It also allows other types
to implement the interface.
2012-07-16 12:02:05 +01:00
Matt Goodall e95528641b Combine Stream's Decode and DecodeElement methods. 2012-07-12 00:56:35 +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 6dfd9e096b Documentation tweaks and additions. 2012-07-12 00:40:55 +01:00
Matt Goodall 32bf10887c Keep filters in ordered list, with most recent at head. 2012-07-10 19:03:28 +01:00
Matt Goodall c31efeffe5 Protect XMPP filters from concurrent access. 2012-07-10 17:25:55 +01:00
Matt Goodall 15a35ce4ff Separate sections of attrs with useful comments. 2012-07-10 17:25:25 +01:00
Matt Goodall cf45380866 Only call with attrs that need to be non-zero. 2012-07-10 17:12:54 +01:00
Matt Goodall 2776e78613 Nicer var name to it's clearer it's an error. 2012-07-10 10:08:49 +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 5536f034bd Improve fatal error message. 2012-07-09 14:48:04 +01:00
Matt Goodall 4759e83863 Add <error/> stanza. 2012-07-09 14:47:50 +01:00
Matt Goodall 2ab32b0959 Experimental XMPP filter-based API, including <iq/> send/recv helper.
The filter mechanism allows you to route any matching stanza to a custom
channel. The SendRecv(iq) method uses a once-only filter to watch for
a reply.
2012-07-09 02:08:01 +01:00
Matt Goodall ec1eaf94b9 More useful docs for Stream and XMPP. 2012-07-09 00:37:21 +01:00
Matt Goodall 1836b6bf2d Add primary XMPP API. 2012-07-08 12:18:51 +01:00