diff options
author | Sam T <sta.cs.vsu@gmail.com> | 2013-04-22 17:00:16 +0400 |
---|---|---|
committer | Sam T <sta.cs.vsu@gmail.com> | 2013-04-22 17:00:16 +0400 |
commit | 98275c68cdc6762e1d00cf26b724d5b68fe42ee4 (patch) | |
tree | 46acea90578a33245013e62de13265b73b8cbd7e /src | |
parent | 07f318c125be9095eaade94e684db0b9f4251936 (diff) |
~ Fix field names.
Diffstat (limited to 'src')
-rw-r--r-- | src/Data/Torrent.hs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/Data/Torrent.hs b/src/Data/Torrent.hs index d9f59626..5955dfcc 100644 --- a/src/Data/Torrent.hs +++ b/src/Data/Torrent.hs | |||
@@ -71,25 +71,25 @@ data Torrent = Torrent { | |||
71 | -- | Info part of the .torrent file contain info about each content file. | 71 | -- | Info part of the .torrent file contain info about each content file. |
72 | data TorrentInfo = | 72 | data TorrentInfo = |
73 | SingleFile { | 73 | SingleFile { |
74 | tLength :: Integer | 74 | tiLength :: Integer |
75 | -- ^ Length of the file in bytes. | 75 | -- ^ Length of the file in bytes. |
76 | 76 | ||
77 | , tMD5sum :: Maybe ByteString | 77 | , tiMD5sum :: Maybe ByteString |
78 | -- ^ 32 character long MD5 sum of the file. | 78 | -- ^ 32 character long MD5 sum of the file. |
79 | -- Used by third-party tools, not by bittorrent protocol itself. | 79 | -- Used by third-party tools, not by bittorrent protocol itself. |
80 | 80 | ||
81 | , tName :: ByteString | 81 | , tiName :: ByteString |
82 | -- ^ Suggested name of the file single file. | 82 | -- ^ Suggested name of the file single file. |
83 | 83 | ||
84 | 84 | ||
85 | 85 | ||
86 | , tPieceLength :: Int | 86 | , tiPieceLength :: Int |
87 | -- ^ Number of bytes in each piece. | 87 | -- ^ Number of bytes in each piece. |
88 | 88 | ||
89 | , tPieces :: ByteString | 89 | , tiPieces :: ByteString |
90 | -- ^ Concatenation of all 20-byte SHA1 hash values. | 90 | -- ^ Concatenation of all 20-byte SHA1 hash values. |
91 | 91 | ||
92 | , tPrivate :: Maybe Bool | 92 | , tiPrivate :: Maybe Bool |
93 | -- ^ If set the client MUST publish its presence to get other peers ONLY | 93 | -- ^ If set the client MUST publish its presence to get other peers ONLY |
94 | -- via the trackers explicity described in the metainfo file. | 94 | -- via the trackers explicity described in the metainfo file. |
95 | -- | 95 | -- |
@@ -97,15 +97,15 @@ data TorrentInfo = | |||
97 | } | 97 | } |
98 | 98 | ||
99 | | MultiFile { | 99 | | MultiFile { |
100 | tFiles :: [TorrentFile] | 100 | tiFiles :: [TorrentFile] |
101 | -- ^ List of the all files that torrent contains. | 101 | -- ^ List of the all files that torrent contains. |
102 | 102 | ||
103 | , tName :: ByteString | 103 | , tiName :: ByteString |
104 | -- | The file path of the directory in which to store all the files. | 104 | -- | The file path of the directory in which to store all the files. |
105 | 105 | ||
106 | , tPieceLength :: Int | 106 | , tiPieceLength :: Int |
107 | , tPieces :: ByteString | 107 | , tiPieces :: ByteString |
108 | , tPrivate :: Maybe Bool | 108 | , tiPrivate :: Maybe Bool |
109 | } deriving (Show, Read, Eq) | 109 | } deriving (Show, Read, Eq) |
110 | 110 | ||
111 | -- | Contain info about one single file. | 111 | -- | Contain info about one single file. |