blob: 223c17f86d4a0c171def97af4312ecba480ad12d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)
}
}
*/
|