diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/messagebus/network.cpp | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/network.cpp')
-rw-r--r-- | library/cpp/messagebus/network.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/messagebus/network.cpp b/library/cpp/messagebus/network.cpp index 304bedae5a..a4978f5bc4 100644 --- a/library/cpp/messagebus/network.cpp +++ b/library/cpp/messagebus/network.cpp @@ -41,11 +41,11 @@ namespace { socklen_t len; if (af == AF_INET) { len = sizeof(sockaddr_in); - ((sockaddr_in*)sa)->sin_port = HostToInet((ui16)port); - ((sockaddr_in*)sa)->sin_addr.s_addr = INADDR_ANY; + ((sockaddr_in*)sa)->sin_port = HostToInet((ui16)port); + ((sockaddr_in*)sa)->sin_addr.s_addr = INADDR_ANY; } else { len = sizeof(sockaddr_in6); - ((sockaddr_in6*)sa)->sin6_port = HostToInet((ui16)port); + ((sockaddr_in6*)sa)->sin6_port = HostToInet((ui16)port); } if (af == AF_INET6) { @@ -75,7 +75,7 @@ namespace { TMaybe<TBindResult> TryBindOnPortProto(int port, int af, bool reusePort) { try { - return {BindOnPortProto(port, af, reusePort)}; + return {BindOnPortProto(port, af, reusePort)}; } catch (const TSystemError&) { return {}; } @@ -99,7 +99,7 @@ std::pair<unsigned, TVector<TBindResult>> NBus::BindOnPort(int port, bool reuseP if (port != 0) { return AggregateBindResults(BindOnPortProto(port, AF_INET, reusePort), - BindOnPortProto(port, AF_INET6, reusePort)); + BindOnPortProto(port, AF_INET6, reusePort)); } // use nothrow versions in cycle @@ -124,7 +124,7 @@ std::pair<unsigned, TVector<TBindResult>> NBus::BindOnPort(int port, bool reuseP void NBus::NPrivate::SetSockOptTcpCork(SOCKET s, bool value) { #ifdef _linux_ - CheckedSetSockOpt(s, IPPROTO_TCP, TCP_CORK, (int)value, "TCP_CORK"); + CheckedSetSockOpt(s, IPPROTO_TCP, TCP_CORK, (int)value, "TCP_CORK"); #else Y_UNUSED(s); Y_UNUSED(value); |