interface
udp.ReceiveFlags
interface ReceiveFlags
Extra metadata passed to the data callback for each received datagram.
- ipv6: boolean
trueif the datagram's source address was IPv6,falsefor IPv4. Reflects the packet's ownsockaddr— a socket adopting an existing fd may receive packets of the other family than it was created with. - truncated: boolean
trueif the datagram was larger than the receive buffer and was truncated by the kernel (MSG_TRUNC). Thedatapassed to the callback contains only the portion that fit in the buffer.