Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 665 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 665 Bytes

ud3tn-aap

Rust AAP development for ud3tn

Getting started

You need a working ud3tn node running on your machine.

Using UnixStream and socket file of ud3tn

use std::os::unix::net::UnixStream;
use ud3tn_aap::Agent;

let mut connection = Agent::connect(
    UnixStream::connect("archipel-core/ud3tn.socket").unwrap(),
    "my-agent".into()
).unwrap();
println!("Connected to {0} as {0}{1}", connection.node_eid, connection.agent_id);

connection.send_bundle("dtn://example.org/hello".into(), "Hello world !".as_bytes()).unwrap();

More examples in examples folder.