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

Function CreateHttpUdpRequester

library/cpp/netliba/v12/udp_http.cpp:1480–1490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1478 }
1479
1480 IRequester* CreateHttpUdpRequester(int port) {
1481 if (AtomicAdd(PanicAttack, 0))
1482 return nullptr;
1483
1484 TIntrusivePtr<ISocket> socket = NNetlibaSocket::CreateBestRecvSocket();
1485 socket->Open(port);
1486 if (!socket->IsValid())
1487 return nullptr;
1488
1489 return CreateHttpUdpRequester(socket);
1490 }
1491
1492 IRequester* CreateHttpUdpRequester(const TIntrusivePtr<NNetlibaSocket::ISocket>& socket) {
1493 if (AtomicAdd(PanicAttack, 0))

Callers 1

SessionLevelTestFunction · 0.70

Calls 6

CreateBestRecvSocketFunction · 0.85
AtomicAddFunction · 0.50
OpenMethod · 0.45
IsValidMethod · 0.45
StartMethod · 0.45
ReleaseMethod · 0.45

Tested by 1

SessionLevelTestFunction · 0.56