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

Function CreateSockets

library/cpp/neh/udp.cpp:341–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339 }
340
341 static inline void CreateSockets(TSockets& s, ui16 port) {
342 TNetworkAddress addr(port);
343
344 for (TNetworkAddress::TIterator it = addr.Begin(); it != addr.End(); ++it) {
345 TSocketHolder res;
346
347 CreateSocket(res, TAddrInfo(&*it));
348
349 s.push_back(new TSocketDescr(res, it->ai_family));
350 }
351 }
352
353 static inline void CreateSocketsOnRandomPort(TSockets& s) {
354 while (true) {

Callers 2

TProtosMethod · 0.85

Calls 5

TAddrInfoClass · 0.85
CreateSocketFunction · 0.70
BeginMethod · 0.45
EndMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected