aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/sock.h
diff options
context:
space:
mode:
authorAlexey Efimov <xeno@prnwatch.com>2022-02-10 16:49:41 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:41 +0300
commit26e0e4fb5e5cd6b4d7f4c21f9fcd7978891bf946 (patch)
treed34555f21d4d9f94f84d460e55b77d7eb41a953c /util/network/sock.h
parentca3252a147a429eac4ba8221857493c58dcd09b5 (diff)
downloadydb-26e0e4fb5e5cd6b4d7f4c21f9fcd7978891bf946.tar.gz
Restoring authorship annotation for Alexey Efimov <xeno@prnwatch.com>. Commit 1 of 2.
Diffstat (limited to 'util/network/sock.h')
-rw-r--r--util/network/sock.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/network/sock.h b/util/network/sock.h
index b10be2f715..52c9c34623 100644
--- a/util/network/sock.h
+++ b/util/network/sock.h
@@ -265,10 +265,10 @@ struct TSockAddrInet: public sockaddr_in, public ISockAddr {
TIpPort GetPort() const noexcept {
return InetToHost(sin_port);
}
-
- void SetPort(TIpPort port) noexcept {
- sin_port = HostToInet(port);
- }
+
+ void SetPort(TIpPort port) noexcept {
+ sin_port = HostToInet(port);
+ }
};
struct TSockAddrInet6: public sockaddr_in6, public ISockAddr {
@@ -333,10 +333,10 @@ struct TSockAddrInet6: public sockaddr_in6, public ISockAddr {
TIpPort GetPort() const noexcept {
return InetToHost(sin6_port);
}
-
- void SetPort(TIpPort port) noexcept {
- sin6_port = HostToInet(port);
- }
+
+ void SetPort(TIpPort port) noexcept {
+ sin6_port = HostToInet(port);
+ }
};
using TSockAddrLocalStream = TSockAddrLocal;