Skip to content

archipel-network/rust-ud3tn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Rust AAP development for ud3tn

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages