Skip to main content

teto_tokio/
lib.rs

1#![warn(missing_docs)]
2//! Async [tokio](https://tokio.rs) adapter for `teto-dpdk`.
3//!
4//! [`TetoRuntime`] starts a dedicated thread running the F-Stack poll loop.
5//! Listeners, UDP sockets and outbound connections are created from it; the
6//! F-Stack thread moves bytes between F-Stack sockets and bounded
7//! per-connection buffers and wakes tokio tasks. Tokio tasks never call into
8//! F-Stack directly.
9
10mod conn;
11mod driver;
12pub mod local;
13mod runtime;
14mod tcp_listener;
15mod tcp_stream;
16mod udp_socket;
17
18pub use runtime::TetoRuntime;
19pub use tcp_listener::TetoTcpListener;
20pub use tcp_stream::{OwnedReadHalf, OwnedWriteHalf, ReuniteError, TetoTcpStream};
21pub use udp_socket::TetoUdpSocket;