network-protocol-xmpp-0.3.2.4: Client->Server XMPP

Network.Protocol.XMPP

Contents

Synopsis

JIDs

data JID Source

Constructors

JID 

Instances

data Node Source

Instances

data Domain Source

Instances

Stanzas

data IQ Source

Constructors

IQ 

Instances

data IQType Source

Constructors

IQGet 
IQSet 
IQResult 
IQError 

Instances

The XMPP monad

data Error Source

Constructors

AuthenticationFailure

The remote host refused the specified authentication credentials.

AuthenticationError Text

There was an error while authenticating with the remote host.

InvalidStanza Element

An unrecognized or malformed Stanza was received from the remote host.

InvalidBindResult ReceivedStanza

The remote host sent an invalid reply to a resource bind request.

TransportError Text

There was an error with the underlying transport.

NoComponentStreamID

The remote host did not send a stream ID when accepting a component connection.

Instances

runClientSource

Arguments

:: Server 
-> JID

Client JID

-> Text

Username

-> Text

Password

-> XMPP a 
-> IO (Either Error a) 

runComponentSource

Arguments

:: Server 
-> Text

Server secret

-> XMPP a 
-> IO (Either Error a) 

bindJID :: JID -> XMPP JIDSource

Send a <bind> message for the given JID, returning the server's reply. In most cases the reply will be the same as the input. However, if the input has no Resource, the returned JID will contain a generated Resource.

Clients must bind a JID before sending any Stanzas.

Resuming sessions