| 2565 | } |
| 2566 | |
| 2567 | SrtModel::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 | |
| 2581 | void SrtModel::Establish(std::string& w_name) |
| 2582 | { |
nothing calls this directly
no outgoing calls
no test coverage detected