From 13f84424ed9975f6827d9786087c6fe6ea265cda Mon Sep 17 00:00:00 2001 From: kimkim Date: Thu, 10 Feb 2022 16:49:27 +0300 Subject: Restoring authorship annotation for . Commit 1 of 2. --- library/cpp/coroutine/listener/listen.cpp | 16 ++++++++-------- library/cpp/coroutine/listener/listen.h | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'library/cpp/coroutine') diff --git a/library/cpp/coroutine/listener/listen.cpp b/library/cpp/coroutine/listener/listen.cpp index 3d4e711d1d5..d925a2d4b46 100644 --- a/library/cpp/coroutine/listener/listen.cpp +++ b/library/cpp/coroutine/listener/listen.cpp @@ -5,7 +5,7 @@ #include #include -#include +#include #include using namespace NAddr; @@ -110,7 +110,7 @@ private: C_ = Parent_->E_->Create(this, "listen_job"); } } - + inline const IRemoteAddr* Addr() const noexcept { return Addr_.Get(); } @@ -259,9 +259,9 @@ public: if (it != L_.End()) { delete &*it; - } + } } - + private: TContExecutor* const E_; ICallBack* const Cb_; @@ -318,14 +318,14 @@ void TContListener::Bind(const TNetworkAddress& addr) { void TContListener::Stop() noexcept { Impl_.Destroy(); } - + void TContListener::StopListenAddr(const IRemoteAddr& addr) { CheckImpl(Impl_)->StopListenAddr(addr); -} - +} + void TContListener::StopListenAddr(const TIpAddress& addr) { return StopListenAddr(TIPv4Addr(addr)); -} +} void TContListener::StopListenAddr(const TNetworkAddress& addr) { for (TNetworkAddress::TIterator it = addr.Begin(); it != addr.End(); ++it) { diff --git a/library/cpp/coroutine/listener/listen.h b/library/cpp/coroutine/listener/listen.h index 3a89cd3eccc..ae4d67c1cf0 100644 --- a/library/cpp/coroutine/listener/listen.h +++ b/library/cpp/coroutine/listener/listen.h @@ -1,6 +1,6 @@ #pragma once -#include +#include #include struct TIpAddress; @@ -112,7 +112,7 @@ public: void StopListenAddr(const NAddr::IRemoteAddr& addr); void StopListenAddr(const TIpAddress& addr); void StopListenAddr(const TNetworkAddress& addr); - + template inline void StartListenAddr(const T& addr) { Bind(addr); -- cgit v1.3