compio-net 0.12.1

Networking IO for compio
docs.rs failed to build compio-net-0.12.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: compio-net-0.12.0

compio-net

MIT licensed crates.io docs.rs Check Test

Networking IO for compio.

This crate provides async networking primitives built on compio's completion-based IO model.

Usage

Use compio directly with net feature enabled:

cargo add compio --features net

Example:

use compio::net::TcpListener;
use compio::io::{AsyncReadExt, AsyncWriteExt};

let listener = TcpListener::bind("127.0.0.1:8080").await?;
loop {
    let (stream, addr) = listener.accept().await?;
    // Handle connection
}