diff options
Diffstat (limited to 'src/Network/BitTorrent/Peer.hs')
-rw-r--r-- | src/Network/BitTorrent/Peer.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/Peer.hs b/src/Network/BitTorrent/Peer.hs index 9aa924d3..6e5db0e0 100644 --- a/src/Network/BitTorrent/Peer.hs +++ b/src/Network/BitTorrent/Peer.hs | |||
@@ -531,8 +531,12 @@ 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" | ||
534 | sock <- socket AF_INET Stream Network.Socket.defaultProtocol | 535 | sock <- socket AF_INET Stream Network.Socket.defaultProtocol |
536 | |||
537 | putStrLn "connect" | ||
535 | connect sock (peerSockAddr p) | 538 | connect sock (peerSockAddr p) |
539 | putStrLn "connected" | ||
536 | return sock | 540 | return sock |
537 | 541 | ||
538 | -- | Pretty print peer address in human readable form. | 542 | -- | Pretty print peer address in human readable form. |