summaryrefslogtreecommitdiff
path: root/Presence/XMPPTypes.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-06-28 00:17:14 -0400
committerjoe <joe@jerkface.net>2013-06-28 00:17:14 -0400
commit81e891b5661f066a96c32e39232d5fd1445efd11 (patch)
treece2f863f29699b43f108458f25973b3b0b076dbf /Presence/XMPPTypes.hs
parent559a7c3d2bb908036fb0ab9b2b8bc90e0a1c438c (diff)
xml-conduit parsing for packets inbound from clients
Diffstat (limited to 'Presence/XMPPTypes.hs')
-rw-r--r--Presence/XMPPTypes.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Presence/XMPPTypes.hs b/Presence/XMPPTypes.hs
index eb5d349e..e3bbfd16 100644
--- a/Presence/XMPPTypes.hs
+++ b/Presence/XMPPTypes.hs
@@ -11,10 +11,11 @@ import Data.Binary.Builder as B
11import Data.Binary.Put 11import Data.Binary.Put
12import Control.DeepSeq 12import Control.DeepSeq
13import ByteStringOperators 13import ByteStringOperators
14import SocketLike
14 15
15class XMPPSession session where 16class XMPPSession session where
16 data XMPPClass session 17 data XMPPClass session
17 newSession :: XMPPClass session -> Socket -> Handle -> IO session 18 newSession :: SocketLike sock => XMPPClass session -> sock -> IO session
18 setResource :: session -> ByteString -> IO () 19 setResource :: session -> ByteString -> IO ()
19 getJID :: session -> IO JID 20 getJID :: session -> IO JID
20 closeSession :: session -> IO () 21 closeSession :: session -> IO ()