-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement i2p_pex, peer exchange support for i2p torrents
- Loading branch information
Showing
18 changed files
with
534 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -920,6 +920,7 @@ SOURCES = | |
|
||
# -- extensions -- | ||
ut_pex | ||
i2p_pex | ||
ut_metadata | ||
smart_ban | ||
; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
Copyright (c) 2025, 2019-2021, Arvid Norberg | ||
All rights reserved. | ||
You may use, distribute and modify this code under the terms of the BSD license, | ||
see LICENSE file. | ||
*/ | ||
|
||
#ifndef TORRENT_I2P_PEX_EXTENSION_HPP_INCLUDED | ||
#define TORRENT_I2P_PEX_EXTENSION_HPP_INCLUDED | ||
|
||
#ifndef TORRENT_DISABLE_EXTENSIONS | ||
#if TORRENT_USE_I2P | ||
|
||
#include "libtorrent/config.hpp" | ||
|
||
#include <memory> | ||
|
||
namespace libtorrent { | ||
|
||
struct torrent_plugin; | ||
struct torrent_handle; | ||
struct client_data_t; | ||
|
||
// The i2p_pex extension gossips i2p peer addresses, only on i2p torrents. | ||
// The extension will not activate for non-i2p torrents. | ||
// | ||
// This can either be passed in the add_torrent_params::extensions field, or | ||
// via torrent_handle::add_extension(). | ||
TORRENT_EXPORT std::shared_ptr<torrent_plugin> create_i2p_pex_plugin(torrent_handle const&, client_data_t); | ||
} | ||
|
||
#endif | ||
#endif // TORRENT_DISABLE_EXTENSIONS | ||
|
||
#endif // TORRENT_I2P_PEX_EXTENSION_HPP_INCLUDED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.