aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/socket.cpp
diff options
context:
space:
mode:
authorqwerty <qwerty@yandex-team.ru>2022-02-10 16:49:24 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:24 +0300
commit34e37ee57f5837a8da2fdfaccaac9bbe6c7f02ba (patch)
treec9e2dc7251a6743c4352ec4a4c717b18a1bd4da7 /util/network/socket.cpp
parent19bd45eb7775ffded0c62ab05d10b7326198aaa6 (diff)
downloadydb-34e37ee57f5837a8da2fdfaccaac9bbe6c7f02ba.tar.gz
Restoring authorship annotation for <qwerty@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/network/socket.cpp')
-rw-r--r--util/network/socket.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/util/network/socket.cpp b/util/network/socket.cpp
index 4f6e804346..f3a3e79ac8 100644
--- a/util/network/socket.cpp
+++ b/util/network/socket.cpp
@@ -610,28 +610,28 @@ private:
TOps* Ops_;
};
-template <>
+template <>
void Out<const struct addrinfo*>(IOutputStream& os, const struct addrinfo* ai) {
if (ai->ai_flags & AI_CANONNAME) {
- os << "`" << ai->ai_canonname << "' ";
+ os << "`" << ai->ai_canonname << "' ";
}
-
- os << '[';
+
+ os << '[';
for (int i = 0; ai; ++i, ai = ai->ai_next) {
if (i > 0) {
- os << ", ";
+ os << ", ";
}
-
+
os << (const IRemoteAddr&)TAddrInfo(ai);
- }
- os << ']';
-}
-
-template <>
+ }
+ os << ']';
+}
+
+template <>
void Out<struct addrinfo*>(IOutputStream& os, struct addrinfo* ai) {
Out<const struct addrinfo*>(os, static_cast<const struct addrinfo*>(ai));
-}
-
+}
+
template <>
void Out<TNetworkAddress>(IOutputStream& os, const TNetworkAddress& addr) {
os << &*addr.Begin();
@@ -647,7 +647,7 @@ static inline const struct addrinfo* Iterate(const struct addrinfo* addr, const
static inline SOCKET DoConnectImpl(const struct addrinfo* res, const TInstant& deadLine) {
const struct addrinfo* addr0 = res;
-
+
while (res) {
TSocketHolder s(socket(res->ai_family, res->ai_socktype, res->ai_protocol));