Module rustix::backend::net::msghdr

source ยท
Expand description

Utilities for dealing with message headers.

These take closures rather than returning a c::msghdr directly because the message headers may reference stack-local data.

Functionsยง

  • msg_control_len ๐Ÿ”’
  • msg_iov_len ๐Ÿ”’
  • with_noaddr_msghdr ๐Ÿ”’
    Create a message header intended to send without an address.
  • with_recv_msghdr ๐Ÿ”’
    Create a message header intended to receive a datagram.
  • with_unix_msghdr ๐Ÿ”’
    Create a message header intended to send with a Unix address.
  • with_v4_msghdr ๐Ÿ”’
    Create a message header intended to send with an IPv4 address.
  • with_v6_msghdr ๐Ÿ”’
    Create a message header intended to send with an IPv6 address.
  • with_xdp_msghdr ๐Ÿ”’
    Create a message header intended to send with an XDP address.
  • zero_msghdr ๐Ÿ”’
    Create a zero-initialized message header struct value.