Philipp Balzarek
79117606dc
add roster handling
13 years ago
Philipp Balzarek
c9e0ddd1f8
Add support for reader plugins
13 years ago
Philipp Balzarek
74f4b409c1
fix stanza ID generator
13 years ago
Philipp Balzarek
652384c4b0
Make Network.Xmpp.Types warning-clean
13 years ago
Philipp Balzarek
3d0c5cc72b
add roster handling
13 years ago
Philipp Balzarek
7a5699ee9b
Add support for reader plugins
13 years ago
Jon Kristensen
d5bcf66fab
Support backward XMPP servers by default
13 years ago
Philipp Balzarek
14bdc12af7
let session fail on authentication failure
13 years ago
Philipp Balzarek
e318696981
wrap the stream object (TMVar Stream) in a newtype
...
rename StreamState to ConnectionState
rename Stream to StreamState
add Stream newtype
13 years ago
Philipp Balzarek
8875fca4d7
move TLS preference check to startTLS and add PreferPlain
13 years ago
Jon Kristensen
f4d0ac4eb3
Minor documentation enhancements
13 years ago
Jon Kristensen
2143ad17ff
Rename fromText(s) to jidFromText(s)
13 years ago
Jon Kristensen
3af74f31f7
Concurrent.hs: Respect specified TLS behaviour
13 years ago
Jon Kristensen
2548c94310
Add TLS behaviour and settings to the `StreamConfiguration' object
13 years ago
Jon Kristensen
5923d07f51
Add stanza identifier generator to the `SessionConfiguration' object
13 years ago
Jon Kristensen
03ae8c9d65
Add connection closed handler to `SessionConfiguration' object
13 years ago
Jon Kristensen
500b8c1063
Add `SessionConfiguration' object
13 years ago
Jon Kristensen
b8f3b5920d
Remove diagnostic information moved to the logging system
13 years ago
Jon Kristensen
9447742ebe
TLS.hs: Extend logging
13 years ago
Jon Kristensen
01c702c130
Stream.hs: Extend logging
13 years ago
Jon Kristensen
d06ebc86eb
Make legacy sesion bind optional and disabled by default
13 years ago
Jon Kristensen
5a5a9f244e
Sasl.hs: Extend logging
13 years ago
Jon Kristensen
95dbb2c724
Simplify `openStream' and `session'; allow for SockAddr; validate IP
...
`openStream' and `session' now takes a `HostName'. If the hostname is
an IP adress, we connect to it using the default XMPP port. If it's a
hostname, we perform the SRV lookup (or fallback on A/AAAA lookups and
the default XMPP port).
This patch allows for the use of a socket and socket address pair in
the settings, giving advanced users additionally flexibility. This
field can also be used by users that want to use a non-standard port
in combination with a) a misconfigured XMPP domain name (one without
SRV records), or b) connection by IP.
The "manual" A(AAA) lookups have been kept in order to allow the
Pontarius XMPP client to attempt to connect to multiple IP addresses.
13 years ago
Philipp Balzarek
ee84216d12
cleanup Network.Xmpp.Stream
13 years ago
Philipp Balzarek
684c0e04a1
log errors in reader thread
13 years ago
Philipp Balzarek
df4dc7b41f
tighten default TLS parameters
13 years ago
Philipp Balzarek
b7451dc28f
respect errors on xmppBind
13 years ago
Philipp Balzarek
f4a88fbbb8
add StreamConfiguration parameter to session and rename hardcodedTcpDetails to TcpDetails
13 years ago
Philipp Balzarek
f8268d72d6
fix pullStanza not saving conduit state
...
Was using withStream' instead of withStream
13 years ago
Jon Kristensen
a59af1bc4d
Allow connection through IPv4 and IPv6 addresses
13 years ago
Jon Kristensen
3f56ef5ff1
Add Hostname type, `hostname' creator, and Attoparsec hostname validation
13 years ago
Jon Kristensen
2ff809d740
Enable weight-respecting server selection mechanism for SRV records
13 years ago
Jon Kristensen
830a99764a
Make "SRV" and "AAAA" lookups; wrap DNS `error' calls
13 years ago
Philipp Balzarek
bec4490efb
pretty print unpickle errors in error messages
13 years ago
Philipp Balzarek
7c2e8b7a0b
replace nested TMVar usage with StateT Stream
13 years ago
Jon Kristensen
104647ef46
Clarify DNS "TODO" lines
13 years ago
Jon Kristensen
a5b3dc9221
Make "A" DNS lookup; add setting for hardcoded address and port
13 years ago
Jon Kristensen
168311f7e3
Do not Base64-encode log output
13 years ago
Jon Kristensen
f5acd5843d
Unwrap the ErrorT type in the SaslHandler type
13 years ago
Philipp Balzarek
da2745d00f
fix stream feature pickler
...
a name space was missing
13 years ago
Philipp Balzarek
1ea5c02ab6
remove dead code from Network.Xmpp.Tls
13 years ago
Philipp Balzarek
661c014a38
add diagnostic message to XmppOtherFailure
13 years ago
Philipp Balzarek
62f96ac3b0
remove dead code
13 years ago
Philipp Balzarek
51a6cb7993
replace "debug" constant with hsLogger functionality in Network.Xmpp.Tls
13 years ago
Philipp Balzarek
5950c1e313
replace isJust / fromJust with pattern matching
13 years ago
Philipp Balzarek
676e147505
Revert "Change SASL handler computation type"
...
This reverts commit aadd033597 .
Commit "Change SASL handler computation type" introduced a deadlock
when sasl handlers tried to take the TMVar that was already taken by xmppSasl
The SaslM computation type _has_ to be a State transformer rather than working on the TMVar directly because otherwise we would either have to acquire the same lock twice (resulting in a deadlock; situation before this patch) or release the lock prematurly, which would allow the authentication to be preempted (introducing a race condition)
Conflicts:
source/Network/Xmpp/Sasl.hs
13 years ago
Philipp Balzarek
1e7bed93c5
return a service-unavailable un unmatched IQ requests
13 years ago
Philipp Balzarek
ee71092cbb
export stanza error related types from Network.XMPP
13 years ago
Jon Kristensen
4259206466
Add `StreamSettings' record with `Default' instance
13 years ago
Philipp Balzarek
41fd64db3f
remove superfluous modules
13 years ago