The data provided for new incoming packets from NET_ReceiveDatagram().
Defined in <SDL3_net/SDL_net.h>
typedef struct NET_Datagram
{/**< this is unref'd by NET_DestroyDatagram. You only need to ref it if you want to keep it. */
NET_Address *addr; /**< these do not have to come from the same port the receiver is bound to. These are in host byte order, don't byteswap them! */
Uint16 port; /**< the payload of this datagram. */
Uint8 *buf; int buflen; /**< the number of bytes available at `buf`. */
} NET_Datagram;
This datatype is available since SDL_net 3.0.0.