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

Function CreateHttpUdpRequester

library/cpp/neh/netliba_udp_http.cpp:795–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793 };
794
795 IRequesterRef CreateHttpUdpRequester(int port, const IEventsCollectorRef& ec, int physicalCpu) {
796 TUdpHttp* udpHttp = new TUdpHttp(ec);
797 IRequesterRef res(udpHttp);
798 if (!udpHttp->Start(port, physicalCpu)) {
799 if (port) {
800 ythrow yexception() << "netliba can't bind port=" << port;
801 } else {
802 ythrow yexception() << "netliba can't bind random port";
803 }
804 }
805 return res;
806 }
807}

Callers 2

TClientThreadMethod · 0.70
TRequesterMethod · 0.70

Calls 1

StartMethod · 0.45

Tested by

no test coverage detected