diff options
author | joe <joe@jerkface.net> | 2013-06-28 00:17:14 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2013-06-28 00:17:14 -0400 |
commit | 81e891b5661f066a96c32e39232d5fd1445efd11 (patch) | |
tree | ce2f863f29699b43f108458f25973b3b0b076dbf /Presence/XMPPTypes.hs | |
parent | 559a7c3d2bb908036fb0ab9b2b8bc90e0a1c438c (diff) |
xml-conduit parsing for packets inbound from clients
Diffstat (limited to 'Presence/XMPPTypes.hs')
-rw-r--r-- | Presence/XMPPTypes.hs | 3 |
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 | |||
11 | import Data.Binary.Put | 11 | import Data.Binary.Put |
12 | import Control.DeepSeq | 12 | import Control.DeepSeq |
13 | import ByteStringOperators | 13 | import ByteStringOperators |
14 | import SocketLike | ||
14 | 15 | ||
15 | class XMPPSession session where | 16 | class 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 () |