libutp-rs

Crates.iolibutp-rs
lib.rslibutp-rs
version1.0.0
sourcesrc
created_at2021-02-27 15:31:59.574357
updated_at2021-03-14 13:03:40.290443
descriptionAsync libutp interface
homepage
repositoryhttps://github.com/johsunds/libutp-rs
max_upload_size
id361400
size82,102
Johan Sundström (johsunds)

documentation

README

libutp-rs

Docs

An async rust interface to libutp.

Examples

A simple ucat implementation is provided in examples/ucat.rs

// Bind to 5000
cargo run --example ucat 127.0.0.1:5000

Listening for connection on 127.0.0.1:5000
Hi!
// Bind to 5001 and connect to 5000
cargo run --example ucat 127.0.0.1:5001 127.0.0.1:5000

Connecting to 127.0.0.1:5000
Hi!
Commit count: 6

cargo fmt