Sunshine master
Self-hosted game stream host for Moonlight.
rtsp_stream::encrypted_rtsp_header_t Struct Reference

Encrypted RTSP message header used by GameStream. More...

Public Member Functions

bool is_encrypted ()
 Check whether encrypted.
 
uint8_t * payload ()
 Return a pointer to the protocol payload following the packet header.
 
std::uint32_t payload_length ()
 Decode the RTSP interleaved-frame payload length.
 

Public Attributes

std::uint32_t sequenceNumber
 Sequence number.
 
std::uint8_t tag [16]
 Authentication tag appended to the encrypted payload.
 
std::uint32_t typeAndLength
 Type and length.
 

Static Public Attributes

static constexpr std::uint32_t ENCRYPTED_MESSAGE_TYPE_BIT = 0x80000000
 Protocol or platform constant for encrypted message type bit.
 

Detailed Description

Encrypted RTSP message header used by GameStream.

Member Function Documentation

◆ is_encrypted()

bool rtsp_stream::encrypted_rtsp_header_t::is_encrypted ( )
inline

Check whether encrypted.

Returns
True when the RTSP connection is using TLS.

◆ payload()

uint8_t * rtsp_stream::encrypted_rtsp_header_t::payload ( )
inline

Return a pointer to the protocol payload following the packet header.

Returns
Parsed or serialized payload data.

◆ payload_length()

std::uint32_t rtsp_stream::encrypted_rtsp_header_t::payload_length ( )
inline

Decode the RTSP interleaved-frame payload length.

Returns
Payload byte count with the encrypted-message flag masked out.

The documentation for this struct was generated from the following file: