summaryrefslogtreecommitdiff
path: root/libs/tdlib/td/td/telegram/net/SessionMultiProxy.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-04-27 21:33:17 +0300
committeraunsane <aunsane@gmail.com>2018-04-27 21:33:17 +0300
commite1ec72eab6d00b3ba38e5932bc88920f103b6e4a (patch)
tree999de2725a83e30fbbf6576200525d4ef0c5fe38 /libs/tdlib/td/td/telegram/net/SessionMultiProxy.h
parentb9ce1d4d98525490ca1a38e2d9fd4f3369adb3e0 (diff)
Telegram: initial commit
- tdlib moved to telegram dir
Diffstat (limited to 'libs/tdlib/td/td/telegram/net/SessionMultiProxy.h')
-rw-r--r--libs/tdlib/td/td/telegram/net/SessionMultiProxy.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/libs/tdlib/td/td/telegram/net/SessionMultiProxy.h b/libs/tdlib/td/td/telegram/net/SessionMultiProxy.h
deleted file mode 100644
index 7a31656cf6..0000000000
--- a/libs/tdlib/td/td/telegram/net/SessionMultiProxy.h
+++ /dev/null
@@ -1,53 +0,0 @@
-//
-// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018
-//
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
-// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-//
-#pragma once
-
-#include "td/telegram/net/AuthDataShared.h"
-#include "td/telegram/net/NetQuery.h"
-
-#include "td/actor/actor.h"
-
-#include <memory>
-
-namespace td {
-class SessionProxy;
-
-class SessionMultiProxy : public Actor {
- public:
- SessionMultiProxy();
- SessionMultiProxy(const SessionMultiProxy &other) = delete;
- SessionMultiProxy &operator=(const SessionMultiProxy &other) = delete;
- ~SessionMultiProxy() override;
- SessionMultiProxy(int32 session_count, std::shared_ptr<AuthDataShared> shared_auth_data, bool is_main, bool use_pfs,
- bool allow_media_only, bool is_media, bool is_cdn);
-
- void send(NetQueryPtr query);
- void update_main_flag(bool is_main);
-
- void update_session_count(int32 session_count);
- void update_use_pfs(bool use_pfs);
- void update_options(int32 session_count, bool use_pfs);
-
- private:
- size_t pos_ = 0;
- int32 session_count_ = 0;
- std::shared_ptr<AuthDataShared> auth_data_;
- bool is_main_ = false;
- bool use_pfs_ = false;
- bool allow_media_only_ = false;
- bool is_media_ = false;
- bool is_cdn_ = false;
- std::vector<ActorOwn<SessionProxy>> sessions_;
-
- void start_up() override;
- void init();
-
- bool get_pfs_flag() const;
-
- void update_auth_state();
-};
-} // namespace td