Crate compio_net

Source
Expand description

Network related.

Currently, TCP/UDP/Unix socket are implemented.

Structs§

CMsgBuilder
Helper to construct control message.
CMsgIter
An iterator for control messages.
CMsgRef
Reference to a control message.
OwnedReadHalf
Owned read half.
OwnedWriteHalf
Owned write half.
PollFd
A wrapper for socket, providing functionalities to wait for readiness.
ReadHalf
Borrowed read half.
ReuniteError
Error indicating that two halves were not from the same socket, and thus could not be reunited.
TcpListener
A TCP socket server, listening for connections.
TcpStream
A TCP stream between a local and a remote socket.
UdpSocket
A UDP socket.
UnixListener
A Unix socket server, listening for connections.
UnixStream
A Unix stream between two local sockets on Windows & WSL.
WriteHalf
Borrowed write half.

Traits§

ToSocketAddrsAsync
A trait for objects which can be converted or resolved to one or more SocketAddr values.