MCPcopy Create free account
hub / github.com/Haivision/srt / SrtModel

Method SrtModel

apps/transmitmedia.cpp:618–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616
617
618SrtModel::SrtModel(string host, int port, map<string,string> par)
619{
620 InitParameters(host, par);
621 if (m_mode == "caller")
622 is_caller = true;
623 else if (m_mode != "listener")
624 throw std::invalid_argument("Only caller and listener modes supported");
625
626 m_host = host;
627 m_port = port;
628}
629
630void SrtModel::Establish(std::string& w_name)
631{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected