diff options
| author | Namilskyy <alive6863@gmail.com> | 2025-11-25 19:30:30 +0300 |
|---|---|---|
| committer | Namilskyy <alive6863@gmail.com> | 2025-11-25 19:30:30 +0300 |
| commit | 2f3c93066163b32eb62aa15797ec4fff90c7cce8 (patch) | |
| tree | 24d0fa6dcd6043885002e0efd707554b15fa0d83 /src/i2impl | |
| parent | 778f713b2c4b8f8311daf2b878de91e449f69988 (diff) | |
Switched unworking i2p_client to emissary-core library as i2p implementation.
Diffstat (limited to 'src/i2impl')
| -rw-r--r-- | src/i2impl/i2tools.rs | 0 | ||||
| -rw-r--r-- | src/i2impl/mi2p.rs | 33 |
2 files changed, 33 insertions, 0 deletions
diff --git a/src/i2impl/i2tools.rs b/src/i2impl/i2tools.rs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/i2impl/i2tools.rs diff --git a/src/i2impl/mi2p.rs b/src/i2impl/mi2p.rs index e69de29..223c17f 100644 --- a/src/i2impl/mi2p.rs +++ b/src/i2impl/mi2p.rs @@ -0,0 +1,33 @@ + +use crate::cfg::config::Config; + +use emissary_core::I2cpConfig; + +/* +use i2p_client::ClientType; +use i2p_client::I2PClient; +use i2p_client::SessionStyle::Stream; +use i2p_client::Session; + +struct I2PStatus { + Connected: bool, + ConnectionType: ClientType, +} + +impl I2PStatus { + pub fn connect(&self) -> Result<bool, std::io::Error> { + + let config: Config = Config::parse().unwrap(); + let client= I2PClient::new(true, "MeskPKG-manager".to_string(), "2.0", "2.58.0", 10); + // let destination = Session::r#gen(&mut self, SigType::EdDsaSha512Ed25519) + let session = Session::create(config.repo.repo_url, + &config.repo.destination.0, + "MeskPKG-manager", + Stream, + "2.0", + "2.58"); + + Ok(true) + } +} +*/
\ No newline at end of file |
