diff options
author | joe <joe@jerkface.net> | 2013-11-18 18:48:55 -0500 |
---|---|---|
committer | joe <joe@jerkface.net> | 2013-11-18 18:48:55 -0500 |
commit | 2eec39f7eb0f306752fa4223db2c39b517ac353e (patch) | |
tree | 8866fc6866fdc9790bf7a19adabf512fa4cf3444 /Presence/XMPPTypes.hs | |
parent | 274f90dca1a12844c797c86f12754475b42a65d8 (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.hs | 7 |
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 | ||
290 | newtype Thunk = Thunk { runThunk :: IO () } | ||
291 | |||
292 | instance Show Thunk where | ||
293 | show s = "thunk" | ||
294 | |||
290 | getNamesForPeer :: Peer -> IO [S.ByteString] | 295 | getNamesForPeer :: Peer -> IO [S.ByteString] |
291 | getNamesForPeer LocalHost = fmap ((:[]) . S.pack) getHostName | 296 | getNamesForPeer LocalHost = fmap ((:[]) . S.pack) getHostName |
292 | getNamesForPeer peer@(RemotePeer addr) = do | 297 | getNamesForPeer peer@(RemotePeer addr) = do |