Skip to main content

Crate teto_tokio

Crate teto_tokio 

Source
Expand description

Async tokio adapter for teto-dpdk.

TetoRuntime starts a dedicated thread running the F-Stack poll loop. Listeners, UDP sockets and outbound connections are created from it; the F-Stack thread moves bytes between F-Stack sockets and bounded per-connection buffers and wakes tokio tasks. Tokio tasks never call into F-Stack directly.

Modules§

local
Run async code on the F-Stack thread itself, with no cross-thread hop.

Structs§

OwnedReadHalf
The read half of a TetoTcpStream, from TetoTcpStream::into_split.
OwnedWriteHalf
The write half of a TetoTcpStream, from TetoTcpStream::into_split. Dropping it shuts down the write side (FIN) unless forget was called.
ReuniteError
OwnedReadHalf::reunite was given halves of different streams.
TetoRuntime
Handle to the F-Stack runtime: a dedicated OS thread running F-Stack’s poll loop, which owns every socket.
TetoTcpListener
An async TCP listener backed by F-Stack.
TetoTcpStream
An async TCP stream backed by an F-Stack connection.
TetoUdpSocket
An async UDP socket backed by F-Stack.