From: Ramakrishnan Muthukrishnan Date: Fri, 15 Apr 2016 17:35:36 +0000 (+0530) Subject: *.hs: add GPLv3 License text and copyright notice X-Git-Url: https://git.rkrishnan.org/pf/content/components/com_hotproperty/css/%3C?a=commitdiff_plain;h=53d6f1e577880946a0f17d192b4c19691e486c50;p=functorrent.git *.hs: add GPLv3 License text and copyright notice --- diff --git a/src/FuncTorrent/Bencode.hs b/src/FuncTorrent/Bencode.hs index 631a87f..96cdd65 100644 --- a/src/FuncTorrent/Bencode.hs +++ b/src/FuncTorrent/Bencode.hs @@ -1,4 +1,23 @@ {-# LANGUAGE OverloadedStrings #-} +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module FuncTorrent.Bencode (BVal(..) , bValToBList diff --git a/src/FuncTorrent/FileSystem.hs b/src/FuncTorrent/FileSystem.hs index 3c625e6..6c9a9ca 100644 --- a/src/FuncTorrent/FileSystem.hs +++ b/src/FuncTorrent/FileSystem.hs @@ -1,5 +1,24 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleContexts #-} +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module FuncTorrent.FileSystem (run, MsgChannel, diff --git a/src/FuncTorrent/Logger.hs b/src/FuncTorrent/Logger.hs index 81bc9f4..3d3649a 100644 --- a/src/FuncTorrent/Logger.hs +++ b/src/FuncTorrent/Logger.hs @@ -1,3 +1,22 @@ +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module FuncTorrent.Logger ( initLogger , logMessage diff --git a/src/FuncTorrent/Metainfo.hs b/src/FuncTorrent/Metainfo.hs index 2c5a725..ff4dbc2 100644 --- a/src/FuncTorrent/Metainfo.hs +++ b/src/FuncTorrent/Metainfo.hs @@ -1,3 +1,23 @@ +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + + module FuncTorrent.Metainfo (Info(..), Metainfo(..), diff --git a/src/FuncTorrent/Network.hs b/src/FuncTorrent/Network.hs index 210c443..49729a7 100644 --- a/src/FuncTorrent/Network.hs +++ b/src/FuncTorrent/Network.hs @@ -1,8 +1,26 @@ {-# LANGUAGE OverloadedStrings #-} +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module FuncTorrent.Network - ( - sendGetRequest, - mkParams + (sendGetRequest + , mkParams ) where import Prelude hiding (concat) diff --git a/src/FuncTorrent/Peer.hs b/src/FuncTorrent/Peer.hs index c855fa2..0df0abd 100644 --- a/src/FuncTorrent/Peer.hs +++ b/src/FuncTorrent/Peer.hs @@ -1,4 +1,23 @@ {-# LANGUAGE OverloadedStrings #-} +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module FuncTorrent.Peer (Peer(..), PieceMap, diff --git a/src/FuncTorrent/PeerMsgs.hs b/src/FuncTorrent/PeerMsgs.hs index c603291..89744d4 100644 --- a/src/FuncTorrent/PeerMsgs.hs +++ b/src/FuncTorrent/PeerMsgs.hs @@ -1,4 +1,23 @@ {-# LANGUAGE OverloadedStrings #-} +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module FuncTorrent.PeerMsgs (genHandshakeMsg, sendMsg, diff --git a/src/FuncTorrent/PieceManager.hs b/src/FuncTorrent/PieceManager.hs index e65b3fd..4b813de 100644 --- a/src/FuncTorrent/PieceManager.hs +++ b/src/FuncTorrent/PieceManager.hs @@ -1,3 +1,23 @@ +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + + module FuncTorrent.PieceManager (PieceDlState(..), PieceData(..), diff --git a/src/FuncTorrent/Server.hs b/src/FuncTorrent/Server.hs index 465ef04..fe92344 100644 --- a/src/FuncTorrent/Server.hs +++ b/src/FuncTorrent/Server.hs @@ -1,4 +1,23 @@ {-# LANGUAGE OverloadedStrings #-} +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module FuncTorrent.Server where import Control.Concurrent (forkIO) diff --git a/src/FuncTorrent/Tracker.hs b/src/FuncTorrent/Tracker.hs index 1578808..0f13b65 100644 --- a/src/FuncTorrent/Tracker.hs +++ b/src/FuncTorrent/Tracker.hs @@ -1,4 +1,23 @@ {-# LANGUAGE OverloadedStrings #-} +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module FuncTorrent.Tracker (runTracker , getConnectedPeers diff --git a/src/FuncTorrent/Tracker/Http.hs b/src/FuncTorrent/Tracker/Http.hs index d19a013..0cb36b9 100644 --- a/src/FuncTorrent/Tracker/Http.hs +++ b/src/FuncTorrent/Tracker/Http.hs @@ -1,4 +1,23 @@ {-# LANGUAGE OverloadedStrings #-} +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module FuncTorrent.Tracker.Http (trackerLoop ) where diff --git a/src/FuncTorrent/Tracker/Types.hs b/src/FuncTorrent/Tracker/Types.hs index 49e63e3..173e925 100644 --- a/src/FuncTorrent/Tracker/Types.hs +++ b/src/FuncTorrent/Tracker/Types.hs @@ -1,4 +1,23 @@ {-# LANGUAGE OverloadedStrings #-} +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module FuncTorrent.Tracker.Types ( TrackerProtocol(..) , TrackerResponse(..) diff --git a/src/FuncTorrent/Utils.hs b/src/FuncTorrent/Utils.hs index 5047832..2daf3d1 100644 --- a/src/FuncTorrent/Utils.hs +++ b/src/FuncTorrent/Utils.hs @@ -1,3 +1,23 @@ +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + + module FuncTorrent.Utils (createDummyFile, writeFileAtOffset, diff --git a/src/main/Main.hs b/src/main/Main.hs index 97c4351..71c9841 100644 --- a/src/main/Main.hs +++ b/src/main/Main.hs @@ -1,4 +1,23 @@ {-# LANGUAGE OverloadedStrings #-} +{- +Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan + +This file is part of FuncTorrent. + +FuncTorrent is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +FuncTorrent is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with FuncTorrent; if not, see +-} + module Main where import Prelude hiding (log, length, readFile, getContents)