From: Ramakrishnan Muthukrishnan Date: Tue, 10 Feb 2015 06:36:24 +0000 (+0530) Subject: WIP: tracker interactions X-Git-Url: https://git.rkrishnan.org/%5B/frontends/%22news.html/nxhtml.html?a=commitdiff_plain;h=4edd28dacebe0c57a01dce5985bff0623895e6bb;p=functorrent.git WIP: tracker interactions --- diff --git a/src/Tracker.hs b/src/Tracker.hs new file mode 100644 index 0000000..6db0c36 --- /dev/null +++ b/src/Tracker.hs @@ -0,0 +1,16 @@ +module Tracker where + +import qualified Bencode as Benc +import Data.Conduit +import Network.HTTP + +type Url = String + +requestUrl :: String + + +connect :: Url -> String -> IO (Benc.BVal) +connect url infoHash = case (parseUrl url) of + Nothing -> putStrLn "invalid tracker URL" + Just req -> let +