Packet
Configurations for the Packet instance.
struct Packet {
const unsigned char* buffer;
unsigned int size;
Packet() : buffer(NULL), size(0) {}
};
Attributes
- buffer
-
The buffer address of the sent or received data.
Attention: Agora recommends setting buffer to a value larger than 2048 bytes. Otherwise, you may encounter undefined behaviors (such as crashes). - size
- The buffer size of the sent or received data.