| 880 | } |
| 881 | |
| 882 | void SrtCommon::SetupAdapter(const string& host, int port) |
| 883 | { |
| 884 | Verb() << "Binding the caller socket to " << host << ":" << port << " ..."; |
| 885 | auto lsa = CreateAddr(host, port); |
| 886 | int stat = srt_bind(m_sock, lsa.get(), sizeof lsa); |
| 887 | if (stat == SRT_ERROR) |
| 888 | Error("srt_bind"); |
| 889 | } |
| 890 | |
| 891 | void SrtCommon::OpenClient(string host, int port) |
| 892 | { |
nothing calls this directly
no test coverage detected