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

Method SetupAdapter

testing/testmedia.cpp:882–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880}
881
882void 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
891void SrtCommon::OpenClient(string host, int port)
892{

Callers

nothing calls this directly

Calls 4

VerbFunction · 0.85
srt_bindFunction · 0.85
CreateAddrFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected