SmolRTSP 0.2.0
A small, portable, extensible RTSP 1.0 implementation in C99
Loading...
Searching...
No Matches
SmolRTSP_RtcpSdesCname Struct Reference

An RTCP SDES packet with a single chunk containing a single CNAME item (RFC 3550 §6.5). More...

#include <rtcp.h>

Data Fields

bool padding
 (1 bit) Padding flag.
 
uint32_t ssrc
 (32 bits) SSRC of the source being described.
 
const char * cname
 Canonical name (CNAME) in user@host-or-host form.
 

Detailed Description

An RTCP SDES packet with a single chunk containing a single CNAME item (RFC 3550 §6.5).

This is the minimum useful SDES form and the one most senders emit alongside an SR/RR for receiver bookkeeping.

0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P| SC=1 | PT=SDES=202 | length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SSRC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CNAME=1 | len | user@host (UTF-8) ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 0 (item terminator) | zero padding to 32-bit boundary | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Field Documentation

◆ cname

const char* SmolRTSP_RtcpSdesCname::cname

Canonical name (CNAME) in user@host-or-host form.

Must not be NULL and must be ≤ 255 bytes (the SDES item length field is 8 bits).

◆ ssrc

uint32_t SmolRTSP_RtcpSdesCname::ssrc

(32 bits) SSRC of the source being described.

Opaque; same caveat as SmolRTSP_RtcpSr.ssrc.


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