From 12cbb3af2413dc28838ed271351dda16df8f7bdb Mon Sep 17 00:00:00 2001 From: joe Date: Fri, 15 Sep 2017 06:22:10 -0400 Subject: Separating dht-client library from bittorrent package. --- bittorrent/src/Network/BitTorrent/Tracker.hs | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 bittorrent/src/Network/BitTorrent/Tracker.hs (limited to 'bittorrent/src/Network/BitTorrent/Tracker.hs') diff --git a/bittorrent/src/Network/BitTorrent/Tracker.hs b/bittorrent/src/Network/BitTorrent/Tracker.hs new file mode 100644 index 00000000..6db67559 --- /dev/null +++ b/bittorrent/src/Network/BitTorrent/Tracker.hs @@ -0,0 +1,50 @@ +-- | +-- Copyright : (c) Sam Truzjan 2013 +-- License : BSD3 +-- Maintainer : pxqr.sta@gmail.com +-- Stability : experimental +-- Portability : non-portable +-- +-- This module provides high level API for peer -> tracker +-- communication. Tracker is used to discover other peers in the +-- network using torrent info hash. +-- +{-# LANGUAGE TemplateHaskell #-} +module Network.BitTorrent.Tracker + ( -- * RPC Manager + PeerInfo (..) + , Options + , Manager + , newManager + , closeManager + , withManager + + -- * Multitracker session + , trackerList + , Session + , Event (..) + , newSession + , closeSession + , withSession + + -- ** Events + , AnnounceEvent (..) + , notify + , askPeers + + -- ** Session state + , TrackerSession + , trackerPeers + , trackerScrape + + , tryTakeData + , unsafeTryTakeData + + , getSessionState + ) where + +import Network.BitTorrent.Internal.Cache (tryTakeData, unsafeTryTakeData) +import Network.BitTorrent.Tracker.Message +import Network.BitTorrent.Tracker.List +import Network.BitTorrent.Tracker.RPC +import Network.BitTorrent.Tracker.Session -- cgit v1.2.3