summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Sessions
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-07-22 13:47:01 +0400
committerSam T <pxqr.sta@gmail.com>2013-07-22 13:47:01 +0400
commit8e35565ad8c759fe0c69b70fe7c1f68c811259f0 (patch)
tree213541bb2a7f78a5a2b8c8e949837c921cf59bf9 /src/Network/BitTorrent/Sessions
parent87c20d81619b09b2e3c5d6f00b7b2cad900a67fe (diff)
~ Expose some session data.
Diffstat (limited to 'src/Network/BitTorrent/Sessions')
-rw-r--r--src/Network/BitTorrent/Sessions/Types.lhs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/Sessions/Types.lhs b/src/Network/BitTorrent/Sessions/Types.lhs
index af2a6755..5571e23a 100644
--- a/src/Network/BitTorrent/Sessions/Types.lhs
+++ b/src/Network/BitTorrent/Sessions/Types.lhs
@@ -34,6 +34,7 @@
34> , SessionState (..) 34> , SessionState (..)
35> , status, bitfield 35> , status, bitfield
36> , initialSessionState 36> , initialSessionState
37> , getSessionState
37> 38>
38> , SessionException (..) 39> , SessionException (..)
39> , isSessionException, putSessionException 40> , isSessionException, putSessionException
@@ -416,6 +417,9 @@ Peer session state
416> initialSessionState :: PieceCount -> SessionState 417> initialSessionState :: PieceCount -> SessionState
417> initialSessionState pc = SessionState (haveNone pc) def 418> initialSessionState pc = SessionState (haveNone pc) def
418 419
420> getSessionState :: PeerSession -> IO SessionState
421> getSessionState PeerSession {..} = readIORef sessionState
422
419Peer session exceptions 423Peer session exceptions
420------------------------------------------------------------------------ 424------------------------------------------------------------------------
421 425