Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Torrent = Torrent {}
- data TorrentInfo
- = SingleFile { }
- | MultiFile {
- tFiles :: [TorrentFile]
- tName :: ByteString
- tPieceLength :: Integer
- tPieces :: ByteString
- data TorrentFile = TorrentFile {
- fileLength :: Integer
- filePath :: [ByteString]
- readTorrent :: ByteString -> Either String Torrent
- serializeTorrent :: Torrent -> BEncode
- torrentSize :: Torrent -> Integer
Documentation
Torrent | |
|
data TorrentInfo Source
SingleFile | |
| |
MultiFile | |
|
data TorrentFile Source
TorrentFile | |
|
serializeTorrent :: Torrent -> BEncode Source
torrentSize :: Torrent -> Integer Source
Size of the files in the torrent.