Module mio::sys::unix::net

source ·

Functions

  • new_socket 🔒
    Create a new non-blocking socket.
  • Converts a Rust SocketAddr into the system representation.
  • to_socket_addr 🔒
    Converts a libc::sockaddr compatible struct into a native Rust SocketAddr.

Unions

  • A type with the same memory layout as libc::sockaddr. Used in converting Rust level SocketAddr* types into their system representation. The benefit of this specific type over using libc::sockaddr_storage is that this type is exactly as large as it needs to be and not a lot larger. And it can be initialized cleaner from Rust.