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

Function SrtRejectByCodeHook

testing/srt-test-live.cpp:371–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369} g_reject_data;
370
371extern "C" int SrtRejectByCodeHook(void* op, SRTSOCKET acpsock, int , const sockaddr*, const char* )
372{
373 RejectData* data = (RejectData*)op;
374
375 srt_setrejectreason(acpsock, data->code);
376 srt::setstreamid(acpsock, data->streaminfo);
377
378 return -1;
379}
380
381int main( int argc, char** argv )
382{

Callers

nothing calls this directly

Calls 2

srt_setrejectreasonFunction · 0.85
setstreamidFunction · 0.85

Tested by

no test coverage detected