MCPcopy Create free account
hub / github.com/catboost/catboost / CreateBestRecvSocket

Function CreateBestRecvSocket

library/cpp/netliba/socket/socket.cpp:1078–1084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1076 }
1077
1078 TIntrusivePtr<ISocket> CreateBestRecvSocket() {
1079 // TSocket is faster than TRecvMMsgFunc in case of unsupported recvmmsg
1080 if (!TTryToRecvMMsgSocket::IsRecvMMsgSupported()) {
1081 return new TSocket();
1082 }
1083 return new TTryToRecvMMsgSocket();
1084 }
1085
1086}

Callers 3

CreateUdpHostFunction · 0.85
CreateUdpHostFunction · 0.85
CreateHttpUdpRequesterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected