Skip to main content

Module tcp

Module tcp 

Source
Expand description

NBSS-over-TCP transport ([RFC 1002] session service, direct hosting on port 445), built on tokio_uring for zero-copy io_uring networking.

io_uring socket reads deliver owned buffers of arbitrary length, so the reader keeps a carry-over buffer and hands out exact-length header/body slices for NBSS framing. Because TcpStream::read/write_all take &self, the read and write halves share one Rc<TcpStream>; concurrent read and write on the same fd is safe under io_uring.

Structsยง

TcpSink
Write half of a split TcpTransport. Owned by the per-connection writer.
TcpSource
Read half of a split TcpTransport.
TcpTransport
TCP transport speaking RFC 1002 session protocol over io_uring.