interface

udp.ReceiveFlags

interface ReceiveFlags

Extra metadata passed to the data callback for each received datagram.

  • ipv6: boolean

    true if the datagram's source address was IPv6, false for IPv4. Reflects the packet's own sockaddr — a socket adopting an existing fd may receive packets of the other family than it was created with.

  • truncated: boolean

    true if the datagram was larger than the receive buffer and was truncated by the kernel (MSG_TRUNC). The data passed to the callback contains only the portion that fit in the buffer.