diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /util/network | |
parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) | |
download | ydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 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 dc7c2d24a0..fbabb76cbf 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 4f6e804346..1440dd5363 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 6b20e11f70..7a03df97ea 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()); } |