diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-06-12 08:13:18 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-06-12 08:13:18 +0400 |
commit | eadb3a6826fb784c33b10b2eab7d4f7bf72b0043 (patch) | |
tree | d7ca09465f9fa90fc61732da659231353b797f31 /src/Network/BitTorrent/Peer.hs | |
parent | 69c24795715ecb871433bed46e0f43b777b3ca25 (diff) |
- Remove some debug stuff.
Diffstat (limited to 'src/Network/BitTorrent/Peer.hs')
-rw-r--r-- | src/Network/BitTorrent/Peer.hs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Network/BitTorrent/Peer.hs b/src/Network/BitTorrent/Peer.hs index 6e5db0e0..9aa924d3 100644 --- a/src/Network/BitTorrent/Peer.hs +++ b/src/Network/BitTorrent/Peer.hs | |||
@@ -531,12 +531,8 @@ peerSockAddr = SockAddrInet <$> (g . peerPort) <*> (htonl . peerIP) | |||
531 | -- | Tries to connect to peer using reasonable default parameters. | 531 | -- | Tries to connect to peer using reasonable default parameters. |
532 | connectToPeer :: PeerAddr -> IO Socket | 532 | connectToPeer :: PeerAddr -> IO Socket |
533 | connectToPeer p = do | 533 | connectToPeer p = do |
534 | putStrLn "socket" | ||
535 | sock <- socket AF_INET Stream Network.Socket.defaultProtocol | 534 | sock <- socket AF_INET Stream Network.Socket.defaultProtocol |
536 | |||
537 | putStrLn "connect" | ||
538 | connect sock (peerSockAddr p) | 535 | connect sock (peerSockAddr p) |
539 | putStrLn "connected" | ||
540 | return sock | 536 | return sock |
541 | 537 | ||
542 | -- | Pretty print peer address in human readable form. | 538 | -- | Pretty print peer address in human readable form. |