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

Method Set

util/network/ip.h:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 }
99
100 inline void Set(TIpHost ip, TIpPort port) noexcept {
101 Clear();
102
103 sin_family = AF_INET;
104 sin_addr.s_addr = ip;
105 sin_port = HostToInet(port);
106 }
107
108 inline TIpHost Host() const noexcept {
109 return sin_addr.s_addr;

Callers 12

Y_UNIT_TESTFunction · 0.45
TUnixSocketAddrMethod · 0.45
WaitReadMethod · 0.45
WaitWriteMethod · 0.45
WaitReadWriteMethod · 0.45
WaitRdhupMethod · 0.45
WaitReadOneShotMethod · 0.45
WaitWriteOneShotMethod · 0.45
WaitReadWriteOneShotMethod · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 2

HostToInetFunction · 0.85
ClearFunction · 0.50

Tested by

no test coverage detected