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

Method RemoteHost

library/cpp/neh/netliba.cpp:307–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 }
306
307 TString RemoteHost() const override {
308 if (!H_) {
309 TUdpAddress tmp(R_->PeerAddress);
310 tmp.Scope = 0; //discard scope from serialized addr
311
312 TString addr = GetAddressAsString(tmp);
313
314 TStringBuf host, port;
315
316 TStringBuf(addr).RSplit(':', host, port);
317 H_ = host;
318 }
319 return H_;
320 }
321
322 TStringBuf Service() const override {
323 return TStringBuf(R_->Url.c_str(), R_->Url.length());

Callers

nothing calls this directly

Calls 2

RSplitMethod · 0.80
GetAddressAsStringFunction · 0.50

Tested by

no test coverage detected