![]() |
ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
|
Helpers shared by the SRT transmit and receive tabs. More...

Functions | |
| const char * | toolx::streams::srtModeName (SrtConnectionMode mode) |
| The name of a connection mode as shown in the tables. | |
| bool | toolx::streams::srtModeFromName (const std::string &name, SrtConnectionMode &mode) |
| Parse a connection mode name (case insensitive). | |
| bool | toolx::streams::validateSrtLink (const SrtLinkConfig &link, std::string &error) |
| Check the settings of a link. | |
| std::string | toolx::streams::buildSrtUrl (const SrtLinkConfig &link) |
| Build the srt:// URL for a link, with the passphrase percent encoded. | |
| SrtLinkConfig | toolx::streams::receiverFor (const SrtLinkConfig &transmit, const std::string &local_address) |
| The settings of the receiving end of a link. | |
| QJsonObject | toolx::streams::srtLinkToJson (const SrtLinkConfig &link) |
| The settings of a link as a JSON object for the configuration file. | |
| SrtLinkConfig | toolx::streams::srtLinkFromJson (const QJsonObject &object) |
| Read the settings of a link from a JSON object. | |
Helpers shared by the SRT transmit and receive tabs.
| std::string toolx::streams::buildSrtUrl | ( | const SrtLinkConfig & | link | ) |
Build the srt:// URL for a link, with the passphrase percent encoded.
| link | the settings, validated with validateSrtLink() |
| SrtLinkConfig toolx::streams::receiverFor | ( | const SrtLinkConfig & | transmit, |
| const std::string & | local_address ) |
The settings of the receiving end of a link.
There is no discovery, so a transmit row is turned into the row that connects to it: a caller transmitter gets a listening receiver, a listening transmitter gets a calling receiver that connects to local_address, and a rendezvous pair swap addresses.
| transmit | the transmitting end |
| local_address | the address of this machine, used when the transmitter listens |
| SrtLinkConfig toolx::streams::srtLinkFromJson | ( | const QJsonObject & | object | ) |
Read the settings of a link from a JSON object.
Missing values keep the defaults of SrtLinkConfig, an unknown mode is a caller. The port and the latency are limited to the accepted range.
| object | the object made by srtLinkToJson() |
| QJsonObject toolx::streams::srtLinkToJson | ( | const SrtLinkConfig & | link | ) |
The settings of a link as a JSON object for the configuration file.
The passphrase is stored as it is, so a file holding one must be kept private.
| link | the settings |
| bool toolx::streams::srtModeFromName | ( | const std::string & | name, |
| SrtConnectionMode & | mode ) |
Parse a connection mode name (case insensitive).
| name | the name |
| mode | receives the mode |
| const char * toolx::streams::srtModeName | ( | SrtConnectionMode | mode | ) |
The name of a connection mode as shown in the tables.
| mode | the mode |
| bool toolx::streams::validateSrtLink | ( | const SrtLinkConfig & | link, |
| std::string & | error ) |
Check the settings of a link.
| link | the settings |
| error | receives the reason when false is returned |