Module rasi::net

source ·
Available on crate feature net only.
Expand description

Networking primitives for TCP/UDP communication.

This module provides networking functionality for the Transmission Control and User Datagram Protocols, as well as types for IP and socket addresses.

This module is an async version of std::net.

Structs§

  • A TCP socket server, listening for connections. After creating a TcpListener by binding it to a socket address, it listens for incoming TCP connections. These can be accepted by awaiting elements from the async stream of incoming connections.
  • A TCP stream between a local and a remote socket.
  • The read half of TcpStream created by split function.
  • The write half of TcpStream created by split function.
  • A UDP socket.
  • A Unix socket server, listening for connections. After creating a UnixListener by binding it to a socket address, it listens for incoming Unix connections. These can be accepted by awaiting elements from the async stream of incoming connections.