Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
rtsp_stream::encrypted_rtsp_header_t Struct Reference

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

#include <src/rtsp.h>

Public Member Functions

bool is_encrypted () const
 Inspect the encrypted-message flag without modifying the wire header.
uint8_t * payload ()
 Return a pointer to the protocol payload following the packet header.
std::uint32_t payload_length () const
 Decode the RTSP interleaved-frame payload length.

Public Attributes

std::uint32_t sequenceNumber
 Sequence number.
std::array< std::uint8_t, 16 > tag
 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 ( ) const
inline

Inspect the encrypted-message flag without modifying the wire header.

Returns
True when the encrypted-message flag is set.

◆ 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 ( ) const
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: