diff options
Diffstat (limited to 'src/Network')
-rw-r--r-- | src/Network/BitTorrent/Core/PeerAddr.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Message.hs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Network/BitTorrent/Core/PeerAddr.hs b/src/Network/BitTorrent/Core/PeerAddr.hs index bc4a1078..86b88491 100644 --- a/src/Network/BitTorrent/Core/PeerAddr.hs +++ b/src/Network/BitTorrent/Core/PeerAddr.hs | |||
@@ -254,7 +254,7 @@ peerSockAddr PeerAddr {..} = | |||
254 | 254 | ||
255 | -- | Storage used to keep track a set of known peers in client, | 255 | -- | Storage used to keep track a set of known peers in client, |
256 | -- tracker or DHT sessions. | 256 | -- tracker or DHT sessions. |
257 | newtype PeerStore a = PeerStore (HashMap InfoHash [PeerAddr a]) | 257 | newtype PeerStore ip = PeerStore (HashMap InfoHash [PeerAddr ip]) |
258 | 258 | ||
259 | -- | Empty store. | 259 | -- | Empty store. |
260 | instance Default (PeerStore a) where | 260 | instance Default (PeerStore a) where |
diff --git a/src/Network/BitTorrent/DHT/Message.hs b/src/Network/BitTorrent/DHT/Message.hs index a2a6484a..85abf019 100644 --- a/src/Network/BitTorrent/DHT/Message.hs +++ b/src/Network/BitTorrent/DHT/Message.hs | |||
@@ -163,7 +163,7 @@ data GotPeers ip = GotPeers | |||
163 | { -- | If the queried node has no peers for the infohash, returned | 163 | { -- | If the queried node has no peers for the infohash, returned |
164 | -- the K nodes in the queried nodes routing table closest to the | 164 | -- the K nodes in the queried nodes routing table closest to the |
165 | -- infohash supplied in the query. | 165 | -- infohash supplied in the query. |
166 | peers :: Either [NodeAddr ip] [PeerAddr ip] | 166 | peers :: Either [NodeInfo ip] [PeerAddr ip] |
167 | 167 | ||
168 | -- | The token value is a required argument for a future | 168 | -- | The token value is a required argument for a future |
169 | -- announce_peer query. | 169 | -- announce_peer query. |
@@ -171,7 +171,7 @@ data GotPeers ip = GotPeers | |||
171 | } deriving Typeable | 171 | } deriving Typeable |
172 | 172 | ||
173 | peers_key :: BKey | 173 | peers_key :: BKey |
174 | peers_key = "peers" | 174 | peers_key = "values" |
175 | 175 | ||
176 | token_key :: BKey | 176 | token_key :: BKey |
177 | token_key = "token" | 177 | token_key = "token" |
@@ -204,7 +204,7 @@ data Announce = Announce | |||
204 | { -- | infohash of the torrent; | 204 | { -- | infohash of the torrent; |
205 | topic :: InfoHash | 205 | topic :: InfoHash |
206 | 206 | ||
207 | -- | the port /this/ peer is listenning; | 207 | -- | the port /this/ peer is listening; |
208 | , port :: PortNumber | 208 | , port :: PortNumber |
209 | 209 | ||
210 | -- | received in response to a previous get_peers query. | 210 | -- | received in response to a previous get_peers query. |