Bun

interface

udp.ReceiveFlags

interface ReceiveFlags

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

  • 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.