// Max message frame length for discovery protocol: 512KB
pub const MAX_FRAME_LENGTH_DISCOVERY: usize = 512 * 1024;
// Max message frame length for ping protocol: 1KB
pub const MAX_FRAME_LENGTH_PING: usize = 1024;
// Max message frame length for identify protocol: 2KB
pub const MAX_FRAME_LENGTH_IDENTIFY: usize = 2 * 1024;
// Max message frame length for disconnectmsg protocol: 1KB
pub const MAX_FRAME_LENGTH_DISCONNECTMSG: usize = 1024;
// Max message frame length for feeler protocol: 1KB
pub const MAX_FRAME_LENGTH_FEELER: usize = 1024;

// Max data size in send buffer: 24MB (a little larger than max frame length)