torrent-2007.6.29: BitTorrent file parser.
Contents
Index
Data.Torrent
Documentation
data
Torrent
Constructors
Torrent
tAnnounce
::
String
tAnnounceList
:: [
String
]
tComment
::
String
tCreatedBy
:: (
Maybe
String
)
tInfo
::
TorrentInfo
tInfoHash
:: ByteString
Instances
Show
Torrent
data
TorrentInfo
Constructors
SingleFile
tLength
::
Int
tName
::
String
tPieceLength
::
Int
tPieces
:: ByteString
MultiFile
tFiles
:: [
TorrentFile
]
tName
::
String
tPieceLength
::
Int
tPieces
:: ByteString
Instances
Show
TorrentInfo
data
TorrentFile
Constructors
TorrentFile
fileLength
::
Int
filePath
::
FilePath
Instances
Show
TorrentFile
readTorrent
:: ByteString ->
Either
String
Torrent
torrentSize
::
Torrent
->
Int
Produced by
Haddock
version 0.8