summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Peer.hs
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-06-12 08:13:18 +0400
committerSam T <pxqr.sta@gmail.com>2013-06-12 08:13:18 +0400
commiteadb3a6826fb784c33b10b2eab7d4f7bf72b0043 (patch)
treed7ca09465f9fa90fc61732da659231353b797f31 /src/Network/BitTorrent/Peer.hs
parent69c24795715ecb871433bed46e0f43b777b3ca25 (diff)
- Remove some debug stuff.
Diffstat (limited to 'src/Network/BitTorrent/Peer.hs')
-rw-r--r--src/Network/BitTorrent/Peer.hs4
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.
532connectToPeer :: PeerAddr -> IO Socket 532connectToPeer :: PeerAddr -> IO Socket
533connectToPeer p = do 533connectToPeer 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.