/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "mtproto/connection_abstract.h" namespace MTP { using ProxyCheckConnection = details::ConnectionPointer; void ResetProxyCheckers( ProxyCheckConnection &v4, ProxyCheckConnection &v6); void DropProxyChecker( ProxyCheckConnection &v4, ProxyCheckConnection &v6, not_null raw); [[nodiscard]] bool HasProxyCheckers( const ProxyCheckConnection &v4, const ProxyCheckConnection &v6); void StartProxyCheck( not_null mtproto, const ProxyData &proxy, bool tryIPv6, ProxyCheckConnection &v4, ProxyCheckConnection &v6, Fn done, Fn fail); } // namespace MTP