| 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()); |
nothing calls this directly
no test coverage detected