Skip to content

Simulation of delivering mesagines in broadcast network

Notifications You must be signed in to change notification settings

leviska/radio-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it

This is a simulation of two different algorithms for delivering messages in sparse network, where agents can only broadcast messages to their neighbours.

One algorithm is a slightly modified Gossip, and the other is Destination-Sequenced Distance Vector routing.

Run

Install rust

Check build instructions for macroquad in it's readme (you may need to install some packages)

Linux (WSL) cross compile to windows

Run 12 and 19 (apt-get) commands from this file

Also run this

rustup target add x86_64-pc-windows-gnu
rustup toolchain install stable-x86_64-pc-windows-gnu

Then, add --target x86_64-pc-windows-gnu to every cargo command, like cargo build --bin console --target x86_64-pc-windows-gnu

Commands

# Add RUST_LOG=(debug|info|error) for log output
# Run tests with full output
RUST_LOG=debug cargo test -- --nocapture
# Just run (even in wsl)
cargo run --bin console
cargo run --release --bin visual  # --release for release build
# Or, you can just build
cargo build --bin console
cargo build --release --bin visual
# The output will be somewhere here
./target/debug/console
./target/release/visual
# Or, for cross compilation
./target/x86_64-pc-windows-gnu/debug/console
./target/x86_64-pc-windows-gnu/release/console

About

Simulation of delivering mesagines in broadcast network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published