mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
13 lines
328 B
Rust
13 lines
328 B
Rust
extern crate opendht;
|
|
|
|
use opendht::*;
|
|
|
|
fn main() {
|
|
println!("{}", InfoHash::random());
|
|
println!("{}", InfoHash::new());
|
|
//
|
|
//let mut dht = DhtRunner::new();
|
|
//dht.run(1412);
|
|
//let bootstrap_address = CString::new("bootstrap.jami.net").unwrap();
|
|
//dht.ping(&bootstrap_address, bootstrap_address.len());
|
|
} |