diff options
author | spacelord <spacelord@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
commit | 16747e4f77455cca4932df21eb76f12cb0a97a5c (patch) | |
tree | 4dd6da4102d99d0d69dec53c1050d290a850a9f2 /util/network | |
parent | a817f5de12611ec73085eba17f8ec7740a46bdb7 (diff) | |
download | ydb-16747e4f77455cca4932df21eb76f12cb0a97a5c.tar.gz |
Restoring authorship annotation for <spacelord@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/network')
-rw-r--r-- | util/network/address.h | 2 | ||||
-rw-r--r-- | util/network/endpoint.h | 2 | ||||
-rw-r--r-- | util/network/ip.h | 4 | ||||
-rw-r--r-- | util/network/nonblock.cpp | 2 | ||||
-rw-r--r-- | util/network/poller.cpp | 2 | ||||
-rw-r--r-- | util/network/pollerimpl.h | 8 | ||||
-rw-r--r-- | util/network/sock.h | 12 | ||||
-rw-r--r-- | util/network/socket.cpp | 8 |
8 files changed, 20 insertions, 20 deletions
diff --git a/util/network/address.h b/util/network/address.h index 448fcac0c9..b2571845d1 100644 --- a/util/network/address.h +++ b/util/network/address.h @@ -16,7 +16,7 @@ namespace NAddr { }; using IRemoteAddrPtr = THolder<IRemoteAddr>; - using IRemoteAddrRef = TAtomicSharedPtr<NAddr::IRemoteAddr>; + using IRemoteAddrRef = TAtomicSharedPtr<NAddr::IRemoteAddr>; IRemoteAddrPtr GetSockAddr(SOCKET s); IRemoteAddrPtr GetPeerAddr(SOCKET s); diff --git a/util/network/endpoint.h b/util/network/endpoint.h index a3e59b4925..c2aecfe3bb 100644 --- a/util/network/endpoint.h +++ b/util/network/endpoint.h @@ -7,7 +7,7 @@ //some equivalent boost::asio::ip::endpoint (easy for using pair ip:port) class TEndpoint { public: - using TAddrRef = NAddr::IRemoteAddrRef; + using TAddrRef = NAddr::IRemoteAddrRef; TEndpoint(const TAddrRef& addr); TEndpoint(); diff --git a/util/network/ip.h b/util/network/ip.h index dc7c2d24a0..1697232c0d 100644 --- a/util/network/ip.h +++ b/util/network/ip.h @@ -9,10 +9,10 @@ #include <util/generic/yexception.h> /// IPv4 address in network format -using TIpHost = ui32; +using TIpHost = ui32; /// Port number in host format -using TIpPort = ui16; +using TIpPort = ui16; /* * ipStr is in 'ddd.ddd.ddd.ddd' format diff --git a/util/network/nonblock.cpp b/util/network/nonblock.cpp index e515c27cc5..ac1e3eaa6f 100644 --- a/util/network/nonblock.cpp +++ b/util/network/nonblock.cpp @@ -89,7 +89,7 @@ namespace { return Singleton<TFeatureCheck>(); } - using TAccept4 = int (*)(int sockfd, struct sockaddr* addr, socklen_t* addrlen, int flags); + using TAccept4 = int (*)(int sockfd, struct sockaddr* addr, socklen_t* addrlen, int flags); TAccept4 Accept4; bool HaveSockNonBlock; }; diff --git a/util/network/poller.cpp b/util/network/poller.cpp index 7954d0e8b5..06ab0d705b 100644 --- a/util/network/poller.cpp +++ b/util/network/poller.cpp @@ -5,7 +5,7 @@ namespace { struct TMutexLocking { - using TMyMutex = TMutex; + using TMyMutex = TMutex; }; } diff --git a/util/network/pollerimpl.h b/util/network/pollerimpl.h index e8c7e40fba..0dcd82724b 100644 --- a/util/network/pollerimpl.h +++ b/util/network/pollerimpl.h @@ -69,7 +69,7 @@ static inline int MicroToMilli(int timeout) noexcept { } struct TWithoutLocking { - using TMyMutex = TFakeMutex; + using TMyMutex = TFakeMutex; }; #if defined(HAVE_KQUEUE_POLLER) @@ -87,7 +87,7 @@ static inline int Kevent(int kq, struct kevent* changelist, int nchanges, template <class TLockPolicy> class TKqueuePoller { public: - typedef struct ::kevent TEvent; + typedef struct ::kevent TEvent; inline TKqueuePoller() : Fd_(kqueue()) @@ -407,7 +407,7 @@ struct TSelectPollerNoTemplate { template <class TLockPolicy> class TSelectPoller: public TSelectPollerNoTemplate { - using TMyMutex = typename TLockPolicy::TMyMutex; + using TMyMutex = typename TLockPolicy::TMyMutex; public: inline TSelectPoller() @@ -657,7 +657,7 @@ class TGenericPoller: public TBase { public: using TBase::TBase; - using TEvent = typename TBase::TEvent; + using TEvent = typename TBase::TEvent; inline void Set(void* data, SOCKET fd, int what) { if (what) { diff --git a/util/network/sock.h b/util/network/sock.h index b10be2f715..fc1b4ed728 100644 --- a/util/network/sock.h +++ b/util/network/sock.h @@ -339,12 +339,12 @@ struct TSockAddrInet6: public sockaddr_in6, public ISockAddr { } }; -using TSockAddrLocalStream = TSockAddrLocal; -using TSockAddrLocalDgram = TSockAddrLocal; -using TSockAddrInetStream = TSockAddrInet; -using TSockAddrInetDgram = TSockAddrInet; -using TSockAddrInet6Stream = TSockAddrInet6; -using TSockAddrInet6Dgram = TSockAddrInet6; +using TSockAddrLocalStream = TSockAddrLocal; +using TSockAddrLocalDgram = TSockAddrLocal; +using TSockAddrInetStream = TSockAddrInet; +using TSockAddrInetDgram = TSockAddrInet; +using TSockAddrInet6Stream = TSockAddrInet6; +using TSockAddrInet6Dgram = TSockAddrInet6; class TBaseSocket: public TSocketHolder { protected: diff --git a/util/network/socket.cpp b/util/network/socket.cpp index 4f6e804346..d7963aef00 100644 --- a/util/network/socket.cpp +++ b/util/network/socket.cpp @@ -574,7 +574,7 @@ void TSocketHolder::Close() noexcept { } class TSocket::TImpl: public TAtomicRefCount<TImpl> { - using TOps = TSocket::TOps; + using TOps = TSocket::TOps; public: inline TImpl(SOCKET fd, TOps* ops) @@ -721,7 +721,7 @@ static inline ssize_t DoSendV(SOCKET fd, const struct iovec* iov, size_t count) template <bool isCompat> struct TSender { - using TPart = TSocket::TPart; + using TPart = TSocket::TPart; static inline ssize_t SendV(SOCKET fd, const TPart* parts, size_t count) { return DoSendV(fd, (const iovec*)parts, count); @@ -730,7 +730,7 @@ struct TSender { template <> struct TSender<false> { - using TPart = TSocket::TPart; + using TPart = TSocket::TPart; static inline ssize_t SendV(SOCKET fd, const TPart* parts, size_t count) { TTempBuf tempbuf(sizeof(struct iovec) * count); @@ -749,7 +749,7 @@ struct TSender<false> { }; class TCommonSockOps: public TSocket::TOps { - using TPart = TSocket::TPart; + using TPart = TSocket::TPart; public: inline TCommonSockOps() noexcept { |