RTC: add comment for DTLS packet
This commit is contained in:
parent
9ef8e1bd86
commit
a14f26971b
|
|
@ -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)
|
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;
|
uint8_t content_type = 0;
|
||||||
if (length >= 1) {
|
if (length >= 1) {
|
||||||
content_type = (uint8_t)data[0];
|
content_type = (uint8_t)data[0];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user