summaryrefslogtreecommitdiff
path: root/src/i2impl
diff options
context:
space:
mode:
Diffstat (limited to 'src/i2impl')
-rw-r--r--src/i2impl/i2tools.rs0
-rw-r--r--src/i2impl/mi2p.rs33
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