Ocyss/srs-auth / .agents/skills/internal-codemap-for-srs
internal-codemap-for-srs
VerifiedRoute SRS and Oryx code tasks to the smallest relevant trusted codebase map and verification guidance. Use whenever support, development, debugging, review, or maintenance work requires locating, choosing, reading, modifying, testing, or verifying SRS or Oryx code. Covers the first-generation C++ origin and edge media server, its State Threads dependency, the next-generation Go server, browser publishers and players, the SRS Docker image toolchain, SRS testing, and the Oryx Go backend, React dashboard, integrated runtime, packaging, installers, releases, and tests. Use as the code-navigation dependency of parent support and development skills; the parent skill remains responsible for the user-facing workflow and result.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.3 KB |
| references/browser-clients.md | markdown | 2.2 KB |
| references/cpp-server.md | markdown | 23.1 KB |
| references/dev-docker.md | markdown | 8.3 KB |
| references/go-server.md | markdown | 6.8 KB |
| references/oryx.md | markdown | 16.9 KB |
| references/testing.md | markdown | 2.8 KB |
references/cpp-server.md
View on GitHub# C++ Server Code Map
Use this reference after `skills/internal-codemap-for-srs/SKILL.md` routes a task to the first-generation C++ media server. The listed modules, directories, configuration files, and vendored third-party dependency files define the trusted navigation scope.
## C++ Media Server Code
The C++ media server (`trunk/src/`) serves as both origin server and edge server. It uses the ST (State Threads) coroutine library and is the full-featured server with all SRS capabilities.
`main/` — Entry point:
- `main_server` — The `main()` function, starts the server
`core/` — Foundational definitions:
- `core` — Core includes, macros, config generated by configure
- `core_version` through `core_version8` — Version definitions per major release
- `core_autofree` — SrsUniquePtr smart pointer (RAII)
- `core_deprecated` — Deprecated SrsAutoFree, kept for compat
- `core_performance` — Performance tuning constants (merge-read, etc.)
- `core_platform` — Platform abstraction (32/64-bit, PRId64, large file support)
- `core_time` — Time types and conversions (srs_utime_t, ms/us)
`kernel/` — Low-level building blocks, no network, no protocol logic:
Media codecs/containers:
- `kernel_codec` — Codec definitions, H.264/H.265/AAC parsing, sequence headers
- `kernel_aac` — AAC transmuxer (raw AAC stream output)
- `kernel_mp3` — MP3 transmuxer
- `kernel_flv` — FLV tag reader/writer, muxer/demuxer
- `kernel_mp4` — MP4/fMP4 box reader/writer
- `kernel_ts` — MPEG-TS muxer/demuxer
- `kernel_ps` — PS (Program Stream) muxer/demuxer (GB28181)
- `kernel_packet` — Media packet: raw undecoded frame with timing info
Buffers & I/O:
- `kernel_buffer` — SrsBuffer: binary read/write cursor over a byte array
- `kernel_stream` — SrsSimpleStream: growable byte buffer
- `kernel_io` — Abstract I/O interfaces (ISrsReader, ISrsSeeker, ISrsWriter)
- `kernel_file` — File reader/writer implementations
RTC primitives:
- `kernel_rtc_rtp` — RTP packet structure, encode/decode
- `kernel_rtc_rtcp` — RTCP packet types, encode/decode
- `kernel_rtc_queue` — RTP ring buffer and reorder queue
Utilities:
- `kernel_error` — Error code definitions and SrsCplxError
- `kernel_log` — Log levels and ISrsLog interface
- `kernel_consts` — Global constants (chunk sizes, timeouts, limits)
- `kernel_utility` — System time, string helpers, bit buffer
- `kernel_kbps` — Bandwidth statistics (ISrsProtocolStatistic, ISrsClock)
- `kernel_balance` — Load balancing algorithms (round-robin)
- `kernel_hourglass` — Timer/hourglass coroutine (periodic callbacks)
- `kernel_pithy_print` — Sampled logging (print every N seconds, not every call)
- `kernel_factory` — Abstract factory interfaces (ISrsKernelFactory)
- `kernel_resource` — Resource management interfaces (ISrsResource, disposing)
- `kernel_st` — ST coroutine wrappers (ISrsCoroutine, ISrsCoroutineHandler)
`protocol/` — Protocol implementations (wire formats, parsing, serialization):
RTMP:
- `protocol_rtmp_stack` — RTMP chunk stream, message parsing, AMF commands
- `protocol_rtmp_conn` — RTMP client/server handshake and command exchange
- `protocol_rtmp_handshake` — RTMP handshake (simple and complex)
- `protocol_rtmp_msg_array` — Shared message array with auto-free
- `protocol_amf0` — AMF0 encoding/decoding
HTTP:
- `protocol_http_stack` — HTTP message, header, URI, serve mux, handler
- `protocol_http_conn` — HTTP connection parsing (request/response)
- `protocol_http_client` — HTTP client for outbound requests
- `protocol_http_stack_llhttp` — llhttp parser (from Node.js)
- `protocol_http_stack_llhttpadapter` — llhttp adapter for SRS
- `protocol_http_stack_llhttpapi` — llhttp API integration
- `protocol_http_stack_llhttphttp` — llhttp HTTP integration
RTC/WebRTC:
- `protocol_rtc_stun` — STUN packet parsing/building
- `protocol_sdp` — SDP parsing/building
- `protocol_rtp` — RTP packetizer (H.264/Opus → RTP packets)
Other protocols:
- `protocol_srt` — SRT socket wrapper
- `protocol_rtsp_stack` — RTSP message parsing
Media:
- `protocol_raw_avc` — Raw H.264/H.265 stream (Annex-B ↔ AVCC conversion)
- `protocol_format` — Media format: extract metadata, codec info from RTMP stream
Infrastructure:
- `protocol_io` — Protocol-level I/O interfaces (ISrsProtocolReader/Writer)
- `protocol_st` — ST initialization, socket helpers, TCP/UDP wrappers
- `protocol_stream` — SrsFastStream: merge-read buffered stream
- `protocol_conn` — Base connection interface (ISrsConnection)
- `protocol_log` — Thread context for logging (SrsThreadContext)
- `protocol_json` — JSON parsing (SrsJsonAny)
- `protocol_utility` — URL parsing, stream URL helpers
- `protocol_protobuf` — Protobuf encoding helpers (for Prometheus/exporter)
`app/` — Application logic (server features, connections, business logic):
Server core:
- `app_server` — SrsServer: main server, manages listeners and connections
- `app_config` — Configuration parsing and access
- `app_listener` — TCP/UDP listener management
- `app_reload` — Config hot-reload handler interface
- `app_st` — Coroutine implementations (SrsFastCoroutine, SrsExecutorCoroutine)
- `app_log` — File-based logger implementation
RTMP:
- `app_rtmp_conn` — RTMP client connection lifecycle (publish, play)
- `app_rtmp_source` — RTMP live source: manages consumers, GOP cache, hub
HTTP:
- `app_http_api` — HTTP API endpoints (/api/v1/...)
- `app_http_conn` — HTTP connection handler (routes to static/stream/api)
- `app_http_hooks` — HTTP callback hooks (on_connect, on_publish, etc.)
- `app_http_static` — HTTP static file serving
- `app_http_stream` — HTTP live streaming (FLV, TS, AAC, MP3 over HTTP)
- `app_http_client` — HTTP client utilities
WebRTC:
- `app_rtc_server` — RTC server: manages RTC connections
- `app_rtc_conn` — RTC connection: publish/play session, DTLS/SRTP
- `app_rtc_source` — RTC source: manages RTC consumers and tracks
- `app_rtc_api` — WHIP/WHEP API endpoints
- `app_rtc_codec` — Audio transcoding (AAC ↔ Opus via FFmpeg)
- `app_rtc_dtls` — DTLS certificate and handshake
- `app_rtc_network` — RTC network I/O, UDP mux
SRT:
- `app_srt_server` — SRT server: manages SRT connections
- `app_srt_conn` — SRT connection lifecycle (publish, play)
- `app_srt_source` — SRT source: manages SRT consumers
- `app_srt_listener` — SRT listener (bind/accept)
RTSP:
- `app_rtsp_conn` — RTSP connection handler
- `app_rtsp_source` — RTSP source
GB28181:
- `app_gb28181` — GB28181 SIP signaling and PS stream ingestion
HLS/DASH:
- `app_hls` — HLS muxer (TS segments + M3U8 playlist)
- `app_dash` — DASH muxer (fMP4 segments + MPD manifest)
- `app_fragment` — Fragment/segment interface for HLS/DASH
DVR:
- `app_dvr` — DVR recording (FLV/MP4 to disk)
Edge/Forward/Bridge:
- `app_edge` — Edge mode: pull/push from origin
- `app_forward` — Forward: push stream to another RTMP server
- `app_stream_bridge` — Bridge between sources (RTMP↔RTC↔SRT)
Ingest/Transcode:
- `app_ingest` — Ingest: pull external streams through an external FFmpeg-compatible binary
- `app_encoder` — Transcode: configure and supervise external FFmpeg transcoding jobs
- `app_ffmpeg` — Translate SRS ingest/transcode configuration into FFmpeg CLI arguments
Utilities:
- `app_security` — Security: allow/deny rules for publish/play
- `app_refer` — Referer check
- `app_statistic` — Server/stream/client statistics
- `app_heartbeat` — HTTP heartbeat to API server
- `app_utility` — System info, disk/CPU/memory stats
- `app_process` — Child process management
- `app_async_call` — Async HTTP callback execution
- `app_recv_thread` — Background RTMP message receive thread
- `app_ng_exec` — exec hooks (on_publish exec)
- `app_factory` — Application-level factory (file I/O, paths)
- `app_coworkers` — Origin cluster coordination
- `app_latest_version` — Version check against upstream
- `app_caster_flv` — HTTP-FLV push ingest (stream caster)
- `app_mpegts_udp` — MPEG-TS over UDP ingest
- `app_stream_token` — Stream publish token management
- `app_circuit_breaker` — Circuit breaker for overload protection
- `app_hds` — HDS (Adobe HTTP Dynamic Streaming)
**File naming convention:** All C++ source files use `srs_{module}_{topic}.cpp/.hpp` — e.g. `srs_app_rtmp_conn.cpp`, `srs_protocol_amf0.hpp`, `srs_kernel_flv.cpp`.
**Config**
Config (`trunk/conf/`) is only for the C++ media server. The next-generation Go server does not use these config files.
- `srs.conf` — Default config
- `full.conf` — Full reference config with all options documented
- Feature-specific configs: `rtc.conf`, `srt.conf`, `hls.conf`, `dvr.*.conf`, `edge.conf`, `forward.*.conf`, `gb28181.conf`, `dash.conf`, etc.
## State Threads Code
State Threads (`trunk/3rdparty/st-srs/`) is the coroutine library used by the C++ media server only. The Go server does not use ST.
- `sched.c` — Scheduler (thread creation, context switch, run loop)
- `io.c` — I/O: poll/epoll/kqueue wrappers, socket operations
- `event.c` — Event system
- `stk.c` — Stack allocation and management
- `sync.c` — Mutex, condition variable
- `key.c` — Thread-local storage
- `common.c`/`common.h` — Shared internals
- `public.h` — Public API
- `md.h` — Platform detection and context switch macros
- `md_linux.S`, `md_linux2.S`, `md_darwin.S`, `md_cygwin64.S` — Assembly context switch per platform
## FFmpeg Integration Paths
The C++ server uses FFmpeg through two independent paths; do not treat the executable and the linked libraries as one dependency:
- **In-process FFmpeg API** — `app_rtc_codec` calls `libavcodec`, `libswresample`, and `libavutil` directly for packet-level AAC/MP3/Opus audio conversion in the RTMP-to-RTC and RTC-to-RTMP bridges. This path is compiled under `SRS_FFMPEG_FIT`, normally links the pruned `trunk/3rdparty/ffmpeg-4-fit/` libraries into `objs/srs`, and does not start an FFmpeg process. Follow `app_rtc_source` for bridge ownership and `app_rtc_codec` for decode, resample, FIFO, encode, and FFmpeg log handling.
- **External FFmpeg binary** — `app_ingest` and `app_encoder` create `app_ffmpeg`, which builds CLI arguments and delegates to `app_process` to `fork()` and `execv()` the configured executable. This path handles general ingest, video/audio transcoding, filters, snapshots, containers, and protocols supported by that executable; media normally enters or leaves SRS through configured URLs rather than in-process frames. A normal SRS source build finds the host `ffmpeg` with `which` and copies it to `objs/ffmpeg/bin/ffmpeg`; it does not build the full CLI from `ffmpeg-4-fit`. For the FFmpeg versions compiled by the Docker toolchain, default-binary selection, and packaging into release images, route separately to the [Dev Docker map](dev-docker.md).
The similarly named output paths have different roles: `objs/ffmpeg/lib/` and its headers support the linked API, while `objs/ffmpeg/bin/ffmpeg` is the independently executable CLI. Use `trunk/auto/depends.sh` to trace both source-build dependency paths.
## FFmpeg Fit Code
FFmpeg Fit (`trunk/3rdparty/ffmpeg-4-fit/`) is a pruned vendored FFmpeg 4.x source tree used by the C++ media server's in-process audio transcoder. It builds `libavcodec`, `libswresample`, and `libavutil` for AAC/MP3/Opus conversion; the Go server does not use it. SRS configures the tree from `trunk/auto/depends.sh`, disables unrelated FFmpeg features and assembly, and links the resulting libraries into the server when `SRS_FFMPEG_FIT` is enabled.
Build and portability:
- `configure` — FFmpeg feature and platform configuration; regenerates enabled codec and component lists
- `Makefile` — Top-level build, library ordering, installation, and cleanup targets
- `ffbuild/` — Shared make rules plus version and pkg-config generation scripts
- `compat/` — Vendored C atomic and `va_copy` compatibility headers
- `LICENSE.md` — FFmpeg licensing summary and optional-library license boundaries
`libavcodec/` — Audio codec APIs and implementations:
- `avcodec.h` — Public codec context, packet, frame, encoder, and decoder API
- `decode.c`, `encode.c`, `avpacket.c`, `options.c`, `utils.c` — Generic codec lifecycle, packet ownership, options, and utility implementation
- `allcodecs.c`, `codec_list.c`, `parser_list.c`, `bsf_list.c` — Codec/component registration; list files are regenerated by `configure` for the selected build
- `aacdec*`, `aacenc*`, `aacps*`, `aacsbr*`, `aactab*`, `aacpsy.c`, `latm_parser.c` — AAC decoding, encoding, parametric stereo, spectral band replication, tables, psychoacoustics, and LATM parsing
- `opusdec.c`, `opusenc*`, `opus_celt*`, `opus_silk.c`, `opus_pvq*`, `opus_rc*`, `opustab*` — Native Opus codec implementation
- `libopus.c`, `libopusdec.c`, `libopusenc.c` — Adapter for the separately built external libopus, used unless native FFmpeg Opus is selected
- `mpegaudiodec*`, `mpegaudiodsp*`, `mpegaudiodata*`, `mpegaudio*` — MP3 decoding and MPEG audio support
- `fft*`, `mdct*`, `dct*`, `rdft*`, `sinewin*`, `kbdwin*` — Transform and windowing primitives required by the enabled audio codecs
- `x86/`, `arm/`, `aarch64/` — Architecture-specific codec and DSP implementations retained from FFmpeg; the bundled SRS build currently disables assembly
`libswresample/` — Audio sample conversion between decoder and encoder:
- `swresample.c`, `swresample.h`, `swresample_internal.h` — Public API and resampling pipeline
- `resample.c`, `resample_dsp.c` — Sample-rate conversion
- `audioconvert.c` — Packed/planar sample-format conversion
- `rematrix.c` — Channel-layout and mixing conversion
- `dither.c`, `noise_shaping_data.c` — Dithering and noise shaping
- `options.c` — `SwrContext` option definitions
- `x86/`, `arm/`, `aarch64/` — Architecture-specific resampling and conversion implementations retained from FFmpeg
`libavutil/` — Shared runtime primitives used by the codec and resampler libraries:
- `frame.*`, `buffer*`, `mem.*` — Frame, reference-counted buffer, and memory management
- `audio_fifo.*`, `fifo.*` — Audio-sample and generic FIFO queues
- `channel_layout.*`, `samplefmt.*` — Audio channel-layout and sample-format helpers
- `opt.*`, `dict.*`, `eval.*` — Runtime options, dictionaries, and expression evaluation
- `log.*`, `error.*` — FFmpeg logging and error-string support
- `mathematics.*`, `rational.*`, `time.*` — Timestamp, rational-number, and time utilities
- `cpu.*`, `x86/`, `arm/`, `aarch64/` — CPU detection and architecture-specific utility implementations
Disabled remnants:
- `libavdevice/`, `libavfilter/`, `libavformat/`, `libavresample/`, `libswscale/` — Partial upstream files retained by the pruned tree; SRS disables these libraries for FFmpeg Fit and does not link them into the server
## libSRTP Fit Code
libSRTP Fit (`trunk/3rdparty/libsrtp-2-fit/`) is the vendored libSRTP 2.3.0 source used by the C++ WebRTC stack to protect and unprotect RTP and RTCP packets. It builds `libsrtp2`; the Go server does not use this tree. SRS can use libSRTP's internal AES/SHA implementation or enable its OpenSSL-backed ciphers with `SRS_SRTP_ASM`.
Build and public API:
- `configure`, `configure.ac`, `Makefile.in`, `crypto/Makefile.in` — Autoconf configuration and build rules
- `config_in.h`, `config_in_cmake.h`, `config.h_win32vc7`, `config.hw` — Generated-config templates and platform-specific configurations
- `include/srtp.h` — Public session, stream policy, crypto policy, protect/unprotect, event, and version API
- `include/srtp_priv.h` — Internal session, stream, packet-index, and key state
- `LICENSE` — libSRTP BSD license
SRTP protocol engine:
- `srtp/srtp.c` — SRTP/SRTCP contexts, policies, stream lookup, key derivation, packet authentication/encryption, replay checks, and protect/unprotect entry points
- `srtp/ekt.c`, `include/ekt.h` — Encrypted Key Transport support
Crypto subsystem:
- `crypto/cipher/cipher.c`, `crypto/cipher/aes.c`, `crypto/cipher/aes_icm.c` — Cipher abstraction and built-in AES/AES-ICM implementation
- `crypto/cipher/aes_icm_ossl.c`, `crypto/cipher/aes_gcm_ossl.c` — OpenSSL-backed AES-ICM and AES-GCM
- `crypto/cipher/aes_icm_nss.c`, `crypto/cipher/aes_gcm_nss.c` — NSS-backed alternatives retained from upstream
- `crypto/hash/auth.c`, `crypto/hash/hmac.c`, `crypto/hash/sha1.c` — Authentication abstraction and built-in HMAC-SHA1
- `crypto/hash/hmac_ossl.c` — OpenSSL-backed HMAC
- `crypto/replay/rdb.c`, `crypto/replay/rdbx.c` — RTP and extended-index replay databases
- `crypto/kernel/` — Crypto-kernel registration, allocation, keys, and error reporting
- `crypto/math/` — Byte/word manipulation and statistical helpers
- `crypto/include/` — Internal cipher, authentication, replay, crypto-kernel, and datatype interfaces
Non-runtime support:
- `test/`, `crypto/test/` — Upstream SRTP, RTP, replay, cipher, hash, and DTLS-SRTP drivers
- `fuzzer/` — Upstream packet fuzzer harness and memory wrappers
- `doc/` — Documentation build stub retained from upstream
## OpenSSL Fit Code
OpenSSL Fit (`trunk/3rdparty/openssl-1.1-fit/`) is the vendored OpenSSL 1.1.1l source used by the C++ media server. It builds `libssl` and `libcrypto` for TLS/HTTPS, RTMP complex handshakes, WebRTC DTLS and certificates, HMAC/DH/AES helpers, optional libSRTP acceleration, and SRT encryption; the Go server does not use this tree. SRS normally builds static, thread-disabled libraries and selects assembly according to the target and NASM settings.
Build and public API:
- `Configure`, `config`, `Configurations/` — Target selection, feature configuration, and platform build templates
- `build.info`, `crypto/build.info`, `ssl/build.info` — Library source manifests used by the OpenSSL build generator
- `util/`, `external/perl/` — Build-file, error-table, symbol, and platform code generators
- `include/openssl/` — Public SSL, crypto, certificate, key, digest, cipher, BIO, and error APIs
- `include/crypto/`, `include/internal/` — Internal crypto and portability interfaces shared across libraries
- `LICENSE` — OpenSSL and SSLeay license terms for this vendored version
TLS and DTLS (`ssl/`):
- `ssl_lib.c`, `ssl_init.c`, `methods.c` — SSL context/session lifecycle, initialization, and TLS/DTLS method selection
- `statem/` — TLS and DTLS client/server handshake state machines
- `record/` — TLS/DTLS record parsing, encryption, decryption, buffering, and replay handling
- `d1_lib.c`, `d1_msg.c`, `d1_srtp.c` — DTLS behavior, message processing, and DTLS-SRTP profile negotiation
- `ssl_cert.c`, `ssl_rsa.c`, `ssl_sess.c` — Certificate/key handling and session state
- `ssl_ciph.c`, `s3_enc.c`, `t1_enc.c`, `tls13_enc.c` — Cipher selection and protocol-version key/record protection
Cryptography (`crypto/`):
- `evp/` — High-level digest, cipher, signing, verification, encryption, and key APIs used by SRS
- `bio/` — Abstract I/O layer used by SSL and certificate processing
- `rand/` — Cryptographically secure random-number generation
- `hmac/`, `sha/`, `md5/` — Message authentication and digest implementations
- `aes/`, `modes/`, `chacha/`, `poly1305/` — Symmetric ciphers and block/AEAD modes
- `bn/`, `dh/`, `ec/`, `rsa/` — Big-number and public-key algorithms used by handshakes and certificates
- `asn1/`, `x509/`, `x509v3/`, `pem/` — Certificate structures, parsing, validation, extensions, and PEM encoding
- `err/`, `objects/`, `stack/`, `lhash/` — Error tables, object identifiers, collections, and lookup tables
Non-runtime support:
- `apps/` — Upstream `openssl` command implementations and test certificates; not linked into the SRS server
- `engines/` — Optional OpenSSL engine implementations retained from upstream
- `fuzz/` — Upstream ASN.1, certificate, TLS client/server, and bignum fuzz targets
- `ms/`, `os-dep/` — Windows/VMS and other operating-system compatibility support
## SRT Fit Code
SRT Fit (`trunk/3rdparty/srt-1-fit/`) is the vendored SRT 1.5.6 transport library used by the C++ media server's SRT listener, connections, and source. It builds `libsrt` without the upstream command-line applications and uses OpenSSL through HaiCrypt for payload encryption; the Go server does not use this tree. The tree is pristine upstream source with the apps, tests, docs, examples, and CI files removed; the only SRS-local change is `trunk/3rdparty/patches/srt/api.cpp-01.patch`, applied at build time by `trunk/auto/depends.sh`.
Build and portability:
- `CMakeLists.txt` — Library version, source selection, crypto backend, build options, targets, and installation
- `configure`, `configure-data.tcl` — Tcl front end that translates SRT configure options into CMake settings
- `scripts/` — CMake feature checks, generated logging/error definitions, pkg-config template, cross-platform builds, packaging, and release helpers
- `common/` — Shared Windows/POSIX compatibility sources and source manifest
- `LICENSE` — Mozilla Public License 2.0 terms
Public API and socket lifecycle (`srtcore/`):
- `srt.h`, `srt_attr_defs.h` — Public C API, socket options, events, errors, and statistics
- `srt_c_api.cpp` — Public C API implementation
- `api.cpp`, `api.h` — Socket creation, bind/listen/accept/connect, send/receive, groups, and global resource management
- `core.cpp`, `core.h` — Per-socket protocol engine and connection state
- `socketconfig.cpp`, `socketconfig.h` — Socket option validation, inheritance, and runtime configuration
Transport protocol (`srtcore/`):
- `handshake.cpp`, `handshake.h` — UDT/SRT handshake packets, extensions, negotiation, and rendezvous behavior
- `packet.cpp`, `packet.h` — Data/control packet representation, serialization, sequence numbers, and timestamps
- `channel.cpp`, `channel.h` — UDP channel send/receive and packet addressing
- `queue.cpp`, `queue.h`, `epoll.cpp`, `epoll.h` — Socket multiplexing, send/receive queues, timers, and epoll-style readiness
- `buffer_snd.*`, `buffer_rcv.*`, `buffer_tools.*`, `cache.*`, `list.*` — Packet buffers, loss lists, retransmission state, and payload storage
- `window.cpp`, `window.h`, `congctl.cpp`, `congctl.h` — Flow/congestion windows, ACK timing, bandwidth estimation, and live/file congestion control
- `tsbpd_time.cpp`, `tsbpd_time.h`, `atomic_clock.h` — Timestamp-based packet delivery and monotonic clock handling
- `packetfilter.*`, `packetfilter_builtin.h`, `fec.*` — Packet-filter framework and forward-error-correction support
- `group.cpp`, `group_common.cpp`, `group_backup.cpp` — SRT socket-group and redundant-link behavior
- `crypto.cpp`, `crypto.h` — SRT-core bridge to HaiCrypt key management and packet encryption
- `logging*`, `logger_*`, `stats.h`, `strerror_defs.cpp` — Logging, statistics, and error reporting
- `sync*`, `atomic*`, `platform_sys.h`, `srt_compat.*` — Threading, atomics, system APIs, and portability abstractions
HaiCrypt (`haicrypt/`):
- `haicrypt.h`, `hcrypt.c`, `hcrypt_ctx_rx.c`, `hcrypt_ctx_tx.c`, `hcrypt_rx.c`, `hcrypt_tx.c` — Encryption API, key contexts, key rotation, and packet encrypt/decrypt paths
- `hcrypt_sa.c`, `hcrypt_msg.h`, `hcrypt_xpt_srt.c` — Security associations, key messages, and SRT packet transport adapter
- `cryspr.c`, `cryspr.h`, `cryspr-openssl*.c` — Crypto-provider abstraction and OpenSSL backends used by the SRS build
- `cryspr-gnutls.*`, `cryspr-mbedtls.*`, `cryspr-botan.*` — Alternative crypto backends retained from upstream
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |