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

Method PrepareClient

testing/testmedia.cpp:903–918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901}
902
903void SrtCommon::PrepareClient()
904{
905 m_sock = srt_create_socket();
906 if (m_sock == SRT_ERROR)
907 Error("srt_create_socket");
908
909 int stat = ConfigurePre(m_sock);
910 if (stat == SRT_ERROR)
911 Error("ConfigurePre");
912
913 if (!m_blocking_mode)
914 {
915 srt_conn_epoll = AddPoller(m_sock, SRT_EPOLL_CONNECT | SRT_EPOLL_ERR);
916 }
917
918}
919
920#if ENABLE_BONDING
921void TransmitGroupSocketConnect(void* srtcommon, SRTSOCKET sock, int error, const sockaddr* /*peer*/, int token)

Callers

nothing calls this directly

Calls 1

srt_create_socketFunction · 0.85

Tested by

no test coverage detected