summaryrefslogtreecommitdiff
path: root/Presence/XMPPTypes.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-11-18 18:48:55 -0500
committerjoe <joe@jerkface.net>2013-11-18 18:48:55 -0500
commit2eec39f7eb0f306752fa4223db2c39b517ac353e (patch)
tree8866fc6866fdc9790bf7a19adabf512fa4cf3444 /Presence/XMPPTypes.hs
parent274f90dca1a12844c797c86f12754475b42a65d8 (diff)
updates buddy list on ping timeout.
TODO: send probe when in-bound peer connection re-appears.
Diffstat (limited to 'Presence/XMPPTypes.hs')
-rw-r--r--Presence/XMPPTypes.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Presence/XMPPTypes.hs b/Presence/XMPPTypes.hs
index f6ffe66e..d9ebbce9 100644
--- a/Presence/XMPPTypes.hs
+++ b/Presence/XMPPTypes.hs
@@ -284,9 +284,14 @@ data OutBoundMessage = OutBoundPresence Presence
284 | Pong JID JID (Maybe Content) 284 | Pong JID JID (Maybe Content)
285 | Unsupported JID JID (Maybe Content) XML.Name 285 | Unsupported JID JID (Maybe Content) XML.Name
286 | Disconnect 286 | Disconnect
287 | ActivityBump RestrictedSocket 287 | ActivityBump Thunk
288 deriving Prelude.Show 288 deriving Prelude.Show
289 289
290newtype Thunk = Thunk { runThunk :: IO () }
291
292instance Show Thunk where
293 show s = "thunk"
294
290getNamesForPeer :: Peer -> IO [S.ByteString] 295getNamesForPeer :: Peer -> IO [S.ByteString]
291getNamesForPeer LocalHost = fmap ((:[]) . S.pack) getHostName 296getNamesForPeer LocalHost = fmap ((:[]) . S.pack) getHostName
292getNamesForPeer peer@(RemotePeer addr) = do 297getNamesForPeer peer@(RemotePeer addr) = do