diff options
author | kimkim <kimkim@yandex-team.ru> | 2022-02-10 16:49:27 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:27 +0300 |
commit | 13f84424ed9975f6827d9786087c6fe6ea265cda (patch) | |
tree | b94acc282c49a5de96b9e3e19feead21736f3273 /util/network/address.cpp | |
parent | 35f29a67a6b8e50e1826c837330086049114c5ba (diff) | |
download | ydb-13f84424ed9975f6827d9786087c6fe6ea265cda.tar.gz |
Restoring authorship annotation for <kimkim@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/network/address.cpp')
-rw-r--r-- | util/network/address.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/network/address.cpp b/util/network/address.cpp index a81a9e6994..4ed77db6e9 100644 --- a/util/network/address.cpp +++ b/util/network/address.cpp @@ -1,5 +1,5 @@ -#include <util/stream/str.h> - +#include <util/stream/str.h> + #include "address.h" #if defined(_unix_) @@ -119,17 +119,17 @@ void NAddr::PrintHost(IOutputStream& out, const IRemoteAddr& addr) { } TString NAddr::PrintHost(const IRemoteAddr& addr) { - TStringStream ss; - PrintAddr<false>(ss, addr); - return ss.Str(); -} - + TStringStream ss; + PrintAddr<false>(ss, addr); + return ss.Str(); +} + TString NAddr::PrintHostAndPort(const IRemoteAddr& addr) { - TStringStream ss; - PrintAddr<true>(ss, addr); - return ss.Str(); -} - + TStringStream ss; + PrintAddr<true>(ss, addr); + return ss.Str(); +} + IRemoteAddrPtr NAddr::GetSockAddr(SOCKET s) { auto addr = MakeHolder<TOpaqueAddr>(); |