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:
parent
9ef8e1bd86
commit
a14f26971b
1 changed files with 2 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue