Skip to content

Latest commit

 

History

History
 
 

examples

Examples

Announce peer

cargo run --example announce_peer <40 bytes hex info_hash>

Get peers

cargo run --example get_peers <40 bytes hex info_hash>

Put Immutable

cargo run --example put_immutable <string>

Get Immutable

cargo run --example get_immutable <40 bytes hex target from put_immutable>

Put Mutable

cargo run --example put_mutable <64 bytes hex secret_key> <string>

Get Mutable

cargo run --example get_mutable <40 bytes hex target from put_mutable>

Custom Server

cargo run --example custom_server

Measure the Dht size

cargo run --example measure_dht