diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-11 12:30:50 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-11 12:30:50 +0400 |
commit | 0ec910a0fb7c1e5d72e06f00806b85111138461a (patch) | |
tree | 396fbcac569a171d9ef0e2ffe59dbd27a7f6978f /src/Network/BitTorrent/Core | |
parent | 4fef598f29cbb138e7b93c5011887c2b92a12879 (diff) |
Add exchange manager and session to client session
Diffstat (limited to 'src/Network/BitTorrent/Core')
-rw-r--r-- | src/Network/BitTorrent/Core/PeerAddr.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/Core/PeerAddr.hs b/src/Network/BitTorrent/Core/PeerAddr.hs index 63885144..b62cb945 100644 --- a/src/Network/BitTorrent/Core/PeerAddr.hs +++ b/src/Network/BitTorrent/Core/PeerAddr.hs | |||
@@ -240,6 +240,10 @@ instance (Serialize a) => Serialize (PeerAddr a) where | |||
240 | instance Default (PeerAddr IPv4) where | 240 | instance Default (PeerAddr IPv4) where |
241 | def = "127.0.0.1:6881" | 241 | def = "127.0.0.1:6881" |
242 | 242 | ||
243 | -- | @127.0.0.1:6881@ | ||
244 | instance Default (PeerAddr IP) where | ||
245 | def = IPv4 <$> def | ||
246 | |||
243 | -- | Example: | 247 | -- | Example: |
244 | -- | 248 | -- |
245 | -- @peerPort \"127.0.0.1:6881\" == 6881@ | 249 | -- @peerPort \"127.0.0.1:6881\" == 6881@ |