Copyright | (c) Kai Lindholm, 2014 |
---|---|
License | MIT |
Maintainer | megantti@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
For more info on actions, see Network.RTorrent.Action.
- data TrackerId = TrackerId !TorrentId !Int
- data TrackerType
- data TrackerInfo = TrackerInfo {
- trackerUrl :: String
- trackerType :: !TrackerType
- trackerEnabled :: !Bool
- trackerOpen :: !Bool
- trackerId :: TrackerId
- type TrackerAction = Action TrackerId
- getTrackerPartial :: TrackerId -> TrackerAction (TrackerId -> TrackerInfo)
- getTorrentTrackers :: TorrentId -> TorrentAction [TrackerInfo]
- allTrackers :: (TrackerId -> TrackerAction a) -> TorrentId -> TorrentAction [TrackerId :*: a]
- getTrackerUrl :: TrackerId -> TrackerAction String
- getTrackerEnabled :: TrackerId -> TrackerAction Bool
- setTrackerEnabled :: Bool -> TrackerId -> TrackerAction Int
- getTrackerType :: TrackerId -> TrackerAction TrackerType
- getTrackerOpen :: TrackerId -> TrackerAction Bool
Documentation
data TrackerType Source
data TrackerInfo Source
TrackerInfo | |
|
type TrackerAction = Action TrackerId Source
getTrackerPartial :: TrackerId -> TrackerAction (TrackerId -> TrackerInfo) Source
Get a tracker except for TrackerId
. The TrackerId
can be got by running allTrackers
.
allTrackers :: (TrackerId -> TrackerAction a) -> TorrentId -> TorrentAction [TrackerId :*: a] Source
Run the tracker action on all trackers that a torrent has.
Functions dealing with a single variable
setTrackerEnabled :: Bool -> TrackerId -> TrackerAction Int Source