Jon Kristensen
7f2146025c
Clear Haddock warnings, create jidQ and newStanzaID Haddock
12 years ago
Philipp Balzarek
5adbe2784a
close stream after failed connection attempt (including exceptions)
12 years ago
Jon Kristensen
e7a6c7cd07
Remove the `StanzaID' type and the `IdGenerator' newtype
12 years ago
Philipp Balzarek
d153c217b0
replace xpPrim with xpJid in ServiceDiscovery
12 years ago
Philipp Balzarek
7d5007096e
clean up some minor problems
12 years ago
Jon Kristensen
f620784a62
Hide Remove Subscription constructor
12 years ago
Philipp Balzarek
29ee35b4cb
export reconnect'
12 years ago
Philipp Balzarek
e9ff7537ae
let reconnect return a Bool that indicates whether the reconnect was successful
12 years ago
Philipp Balzarek
8d555b6790
make disco code compile again
12 years ago
Philipp Balzarek
121287a3ea
split up reconnect function
12 years ago
Philipp Balzarek
f9e572e3ca
remove waitingTimes function
12 years ago
Philipp Balzarek
5f4c4d5419
twiddle with reconnect times
12 years ago
Philipp Balzarek
86a6aa5f68
export reconnectNow from Concurrent.hs
12 years ago
Philipp Balzarek
1ce5aaf222
improve reconnect
...
rename reconnect to reconnectNow
* reconnect immediately
* function returns failure mode on error
add reconnect function
* retries when reconnect failes
* waits exponentially increasing amount of seconds between attemps
* returns last encountered error when all attempts fail
12 years ago
Philipp Balzarek
bd90cbe903
add tlsConnect function
12 years ago
Michael Snoyman
57944095ab
Support for containers 0.4
12 years ago
Philipp Balzarek
40639bfcf9
add generic connection method
12 years ago
Philipp Balzarek
f7230b1aa8
add missing cases in unpickle functions
13 years ago
Philipp Balzarek
20d3d9cbf6
add flag to control use of template haskell
13 years ago
Philipp Balzarek
d859e087be
clear warnings
13 years ago
Philipp Balzarek
83c9ba0428
add LanguageTag quasi-quoter
13 years ago
Philipp Balzarek
5831a7b42f
add waitForStream
13 years ago
Jon Kristensen
52961a70a4
IQ.hs: Set default time-out value to 30 instead of 3
13 years ago
Jon Kristensen
57bb2a1d21
Utilities.hs: Implemented `IO [Int]' function for reconnection waiting
13 years ago
Jon Kristensen
ea567c7843
Change LangTag Show/Read instances, add parseLangTag, fix __GLASGOW...
13 years ago
Jon Kristensen
f7415bea47
Replace additional `xpPrim' calls
...
Moved and started using `xpSaslError'.
Added `xpShow' and `xpPriority'.
13 years ago
Jon Kristensen
932953274d
Change Read/Show instances, update picklers and change LangTag exports
...
The reason for removing these instances are the same as in #24 .
Affected types are: StanzaID, IQRequestType, MessageType,
PresenceType, StanzaErrorType, StanzaErrorCondition, SaslError,
StreamErrorCondition, Version, and LangTag.
It's quite boilerplate and ugly, but I think that it will do for now.
13 years ago
Jon Kristensen
adedc3079a
Disable TH for GHC <7.6
...
When `template-haskell' has been built against `containers' <0.5 (as is the case
with GHC <7.6), building Pontarius XMPP (that requires `containers' >= 0.5) will
force a rebuild of `template-haskell'. This seems to break GHC (and might likely
also break `template-haskell').
13 years ago
Philipp Balzarek
381d98ca93
ignore whitespaces between elements
13 years ago
Philipp Balzarek
4b7d7cfe26
fix Jid Show instance not quoting '"' and '\'
13 years ago
Philipp Balzarek
2168283315
improve error reporting in case of leading or trailign white spaces in a quoted JID
13 years ago
Philipp Balzarek
ae41225d54
add reconnect function
13 years ago
Philipp Balzarek
08390cc32a
rename field of Item data type
13 years ago
Philipp Balzarek
900cbe415e
add jid quasi quoter (jidQ)
13 years ago
Philipp Balzarek
d3aa719e35
fix tryIOError
13 years ago
Jon Kristensen
ecdcfc0081
Stream.hs: Add `tryIOError', not available in `base-4.2'
13 years ago
Philipp Balzarek
3f76bdbfe6
add support for non-standard options element in roster versioning stream feature
13 years ago
Philipp Balzarek
1551e4c984
drop outbound stanza buffering
...
Stanza send functionality now directly sends the stanzas over the wire and returns appropriate notification whether the sent succeeded (as far as we can tell)
13 years ago
Philipp Balzarek
92746237a9
check for roster versioning stream feature and disable roster versioning unless present
13 years ago
Philipp Balzarek
4d5343037c
quell ghc warnings
13 years ago
Philipp Balzarek
65137386b1
remove to prefix from toLocalpart, toDomainpart and toResourcePart
13 years ago
Philipp Balzarek
789881254e
avoid direct use of PU constructor
...
Building picklers from predefined combinators is more robust against possible future API changes.
13 years ago
Jon Kristensen
f561c9aea3
Add some `Jid' utility functions; don't allow construction of `Jid'
...
Fixes #32 .
13 years ago
Jon Kristensen
8f00c6f7d9
Provide access to StanzaID generator in Network.Xmpp (`newStanzaID')
...
Fixes #22 .
13 years ago
Jon Kristensen
78b9c68c3a
Wrap `AuthFailure' in `XmppAuthFailure'
...
Moved `AuthFailure' to Network.Xmpp.Types.
Fixes #11 .
13 years ago
Philipp Balzarek
6c2830f852
fix log messages in Network.Xmpp.Stream (XMPP => Xmpp)
13 years ago
Philipp Balzarek
e0821567de
run connectionClosedHandler on calls of closeConnection
13 years ago
Philipp Balzarek
53b73bc905
allow read Worker to close streams on read failure and prevent it from stopping itself in this case
13 years ago
Philipp Balzarek
f0d558a528
reinstate withConnection and fix closeConnection
13 years ago
Philipp Balzarek
c56f9c88cd
fix documentation type in Network.Xmpp.Types
13 years ago