| Copyright | (c) Kai Lindholm, 2014 |
|---|---|
| License | MIT |
| Maintainer | megantti@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.RTorrent.Tracker
Description
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
Constructors
| TrackerHTTP | |
| TrackerUDP | |
| TrackerDHT |
data TrackerInfo Source
Constructors
| TrackerInfo | |
Fields
| |
Instances
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