https://github.com/kpcyrd/cjdns-rs
Admin API implementation of cjdns
https://github.com/kpcyrd/cjdns-rs
cjdns
Last synced: about 2 months ago
JSON representation
Admin API implementation of cjdns
- Host: GitHub
- URL: https://github.com/kpcyrd/cjdns-rs
- Owner: kpcyrd
- License: lgpl-3.0
- Created: 2017-05-15T00:43:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-26T22:37:28.000Z (almost 8 years ago)
- Last Synced: 2025-02-06T15:52:34.498Z (4 months ago)
- Topics: cjdns
- Language: Rust
- Homepage: https://crates.io/crates/cjdns
- Size: 10.7 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cjdns-rs [](https://travis-ci.org/kpcyrd/cjdns-rs) [](https://crates.io/crates/cjdns)
Admin API implementation of [cjdns].
[cjdns]: https://github.com/cjdelisle/cjdns
## Getting started
```rust
extern crate cjdns;use cjdns::structs::Peer;
fn main() {
let sock = cjdns::Socket::udp("127.0.0.1:11234").unwrap();let x = sock.ping().unwrap();
println!("{:?}", x);let x = sock.peer_stats().unwrap();
let peers: Vec = x.into_iter()
.flat_map(|page| page.peers)
.collect();
for peer in peers {
println!("{:?}", peer);
}
}
```## License
LGPLv3