1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: add comment for DTLS packet

This commit is contained in:
winlin 2020-10-19 12:04:28 +08:00
parent 9ef8e1bd86
commit a14f26971b

View file

@ -548,6 +548,8 @@ srs_error_t SrsDtlsImpl::do_handshake()
void SrsDtlsImpl::state_trace(uint8_t* data, int length, bool incoming, int r0, int r1, bool cache, bool arq)
{
// change_cipher_spec(20), alert(21), handshake(22), application_data(23)
// @see https://tools.ietf.org/html/rfc2246#section-6.2.1
uint8_t content_type = 0;
if (length >= 1) {
content_type = (uint8_t)data[0];