跳到主要内容

Module net

搜索

Module net 

源代码
展开描述

tokio 的 TCP/UDP/Unix 绑定。

此模块包含 TCP/UDP/Unix 网络类型,类似于标准库,可用于实现网络协议。

§Organization

对于 tokio::net 中不可用的 IO 资源,你可以使用 AsyncFd

模块§

tcp
TCP utility types.
windows
Windows specific network types.

结构体§

TcpListener
A TCP socket server, listening for connections.
TcpSocket
A TCP socket that has not yet been converted to a TcpStream or TcpListener.
TcpStream
A TCP stream between a local and a remote socket.
UdpSocket
A UDP socket.

trait§

ToSocketAddrs
Converts or resolves without blocking to one or more SocketAddr values.

函数§

lookup_host
Performs a DNS resolution.