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

Method SrtModel

testing/testmedia.cpp:2567–2579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2565}
2566
2567SrtModel::SrtModel(string host, int port, map<string,string> par)
2568{
2569 InitParameters(host, "", par);
2570 if (m_mode == "caller")
2571 is_caller = true;
2572 else if (m_mode == "rendezvous")
2573 is_rend = true;
2574 else if (m_mode != "listener")
2575 throw std::invalid_argument("Wrong 'mode' attribute; expected: caller, listener, rendezvous");
2576
2577 m_host = host;
2578 m_port = port;
2579}
2580
2581void SrtModel::Establish(std::string& w_name)
2582{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected