From 2f3c93066163b32eb62aa15797ec4fff90c7cce8 Mon Sep 17 00:00:00 2001 From: Namilskyy Date: Tue, 25 Nov 2025 19:30:30 +0300 Subject: Switched unworking i2p_client to emissary-core library as i2p implementation. --- src/i2impl/i2tools.rs | 0 src/i2impl/mi2p.rs | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/i2impl/i2tools.rs (limited to 'src/i2impl') diff --git a/src/i2impl/i2tools.rs b/src/i2impl/i2tools.rs new file mode 100644 index 0000000..e69de29 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 { + + 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 -- cgit v1.2.3