Skip to content

Latest commit

 

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages