diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-11-22 14:54:51 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-11-22 14:54:51 +0000 |
| commit | c73d235ab87d2c73d9bcce9f581311862e7dc029 (patch) | |
| tree | b2f89890a919c6b864b163129f6e24d0f353f37f /src/ProtocolDetector.h | |
| parent | c1f9032441d0b3fb961992b638991a7666666238 (diff) | |
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added BitTorrent magnet link support to ProtocolDetector.
* src/ProtocolDetector.cc
* src/ProtocolDetector.h
* test/ProtocolDetectorTest.cc
Diffstat (limited to 'src/ProtocolDetector.h')
| -rw-r--r-- | src/ProtocolDetector.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ProtocolDetector.h b/src/ProtocolDetector.h index a1a6806e..9bc48823 100644 --- a/src/ProtocolDetector.h +++ b/src/ProtocolDetector.h @@ -53,6 +53,10 @@ public: // metainfo file, otherwise returns false. bool guessTorrentFile(const std::string& uri) const; + // Returns true if ProtocolDetector thinks uri is BitTorrent Magnet link. + // magnet:?xt=urn:btih:<info-hash>... + bool guessTorrentMagnet(const std::string& uri) const; + // Returns true if ProtocolDetector thinks uri is a path of Metalink XML // file, otherwise return false. bool guessMetalinkFile(const std::string& uri) const; |
