diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/network | |
parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
download | ydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/network')
-rw-r--r-- | util/network/ip.h | 4 | ||||
-rw-r--r-- | util/network/socket.cpp | 4 | ||||
-rw-r--r-- | util/network/socket_ut.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/util/network/ip.h b/util/network/ip.h index fbabb76cbf..dc7c2d24a0 100644 --- a/util/network/ip.h +++ b/util/network/ip.h @@ -46,7 +46,7 @@ static inline TIpHost ResolveHost(const char* data, size_t len) { TIpHost ret; const TString s(data, len); - if (NResolver::GetHostIP(s.data(), &ret) != 0) { + if (NResolver::GetHostIP(s.data(), &ret) != 0) { ythrow TSystemError(NResolver::GetDnsError()) << "can not resolve(" << s << ")"; } @@ -70,7 +70,7 @@ struct TIpAddress: public sockaddr_in { } inline TIpAddress(TStringBuf ip, TIpPort port) { - Set(ResolveHost(ip.data(), ip.size()), port); + Set(ResolveHost(ip.data(), ip.size()), port); } inline TIpAddress(const char* ip, TIpPort port) { diff --git a/util/network/socket.cpp b/util/network/socket.cpp index 1440dd5363..4f6e804346 100644 --- a/util/network/socket.cpp +++ b/util/network/socket.cpp @@ -1070,12 +1070,12 @@ TNetworkAddress::TNetworkAddress(const TUnixSocketPath& unixSocketPath, int flag } TNetworkAddress::TNetworkAddress(const TString& host, ui16 port, int flags) - : Impl_(new TImpl(host.data(), port, flags)) + : Impl_(new TImpl(host.data(), port, flags)) { } TNetworkAddress::TNetworkAddress(const TString& host, ui16 port) - : Impl_(new TImpl(host.data(), port, 0)) + : Impl_(new TImpl(host.data(), port, 0)) { } diff --git a/util/network/socket_ut.cpp b/util/network/socket_ut.cpp index 7a03df97ea..6b20e11f70 100644 --- a/util/network/socket_ut.cpp +++ b/util/network/socket_ut.cpp @@ -48,7 +48,7 @@ void TSockTest::TestSock() { TSocketInput si(s); const TStringBuf req = "GET / HTTP/1.1\r\nHost: yandex.ru\r\n\r\n"; - so.Write(req.data(), req.size()); + so.Write(req.data(), req.size()); UNIT_ASSERT(!si.ReadLine().empty()); } |