14#ifndef STREAMS_SRT_UTILS_H
15#define STREAMS_SRT_UTILS_H
22namespace toolx::streams {
const char * srtModeName(SrtConnectionMode mode)
The name of a connection mode as shown in the tables.
Definition srt_utils.cpp:50
SrtLinkConfig srtLinkFromJson(const QJsonObject &object)
Read the settings of a link from a JSON object.
Definition srt_utils.cpp:164
QJsonObject srtLinkToJson(const SrtLinkConfig &link)
The settings of a link as a JSON object for the configuration file.
Definition srt_utils.cpp:153
SrtLinkConfig receiverFor(const SrtLinkConfig &transmit, const std::string &local_address)
The settings of the receiving end of a link.
Definition srt_utils.cpp:131
std::string buildSrtUrl(const SrtLinkConfig &link)
Build the srt:// URL for a link, with the passphrase percent encoded.
Definition srt_utils.cpp:103
bool srtModeFromName(const std::string &name, SrtConnectionMode &mode)
Parse a connection mode name (case insensitive).
Definition srt_utils.cpp:63
bool validateSrtLink(const SrtLinkConfig &link, std::string &error)
Check the settings of a link.
Definition srt_utils.cpp:80
constexpr int kSrtMinPort
Lowest accepted UDP port.
Definition srt_utils.h:59
constexpr size_t kSrtMinPassphrase
Shortest accepted passphrase.
Definition srt_utils.h:65
constexpr int kSrtMaxLatencyMs
Highest accepted latency in milliseconds.
Definition srt_utils.h:63
SrtConnectionMode
How an SRT connection is established.
Definition srt_utils.h:25
@ kCaller
Connect to a listening peer.
Definition srt_utils.h:27
@ kListener
Wait for a caller.
Definition srt_utils.h:29
@ kRendezvous
Both peers connect to each other at the same time.
Definition srt_utils.h:31
constexpr size_t kSrtMaxPassphrase
Longest accepted passphrase.
Definition srt_utils.h:67
constexpr int kSrtMaxPort
Highest accepted UDP port.
Definition srt_utils.h:61
A named SRT link, one row of the transmit or receive table.
Definition srt_utils.h:51
SrtLinkConfig link
The connection settings.
Definition srt_utils.h:55
std::string name
Session name.
Definition srt_utils.h:53