Browse Source

add cleseConnection and endSession

master
Philipp Balzarek 13 years ago
parent
commit
c01fe10999
  1. 4
      source/Network/Xmpp.hs
  2. 4
      source/Network/Xmpp/Concurrent/Monad.hs

4
source/Network/Xmpp.hs

@ -37,6 +37,8 @@ module Network.Xmpp
, scramSha1 , scramSha1
, plain , plain
, digestMd5 , digestMd5
, closeConnection
, endSession
-- * Addressing -- * Addressing
-- | A JID (historically: Jabber ID) is XMPPs native format -- | A JID (historically: Jabber ID) is XMPPs native format
-- for addressing entities in the network. It is somewhat similar to an e-mail -- for addressing entities in the network. It is somewhat similar to an e-mail
@ -164,7 +166,7 @@ module Network.Xmpp
, AuthSaslFailure , AuthSaslFailure
, AuthIllegalCredentials , AuthIllegalCredentials
, AuthOtherFailure ) , AuthOtherFailure )
, SaslHandler(..) , SaslHandler
) where ) where
import Network.Xmpp.Concurrent import Network.Xmpp.Concurrent

4
source/Network/Xmpp/Concurrent/Monad.hs

@ -82,8 +82,8 @@ runHandler h session = h =<< atomically (readTVar $ eventHandlers session)
-- | End the current Xmpp session. -- | End the current Xmpp session.
endContext :: Session -> IO () endSession :: Session -> IO ()
endContext session = do -- TODO: This has to be idempotent (is it?) endSession session = do -- TODO: This has to be idempotent (is it?)
closeConnection session closeConnection session
stopThreads session stopThreads session

Loading…
Cancel
Save