/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/SourceFiles/mtproto/ |
H A D | mtp_instance.cpp | 331 shiftedDcId = MTP::destroyKeyNextDcId(shiftedDcId); in Private() 336 shiftedDcId = MTP::destroyKeyNextDcId(shiftedDcId); in Private() 646 if (shiftedDcId) { in cancel() 723 }, shiftedDcId); in logoutGuestDcs() 749 shiftedDcId, in addDc() 839 shiftedDcId = MTP::destroyKeyNextDcId(shiftedDcId); in addKeysForDestroy() 1564 shiftedDcId, in startSession() 1620 if (shiftedDcId == BareDcId(shiftedDcId)) { in getThreadForDc() 1653 }, shiftedDcId); in scheduleKeyDestroy() 1692 }, shiftedDcId); in performKeyDestroy() [all …]
|
H A D | facade.h | 60 inline constexpr bool isDownloadDcId(ShiftedDcId shiftedDcId) { in isDownloadDcId() argument 61 return (shiftedDcId >= details::downloadDcId(0, 0)) in isDownloadDcId() 69 inline bool isTemporaryDcId(ShiftedDcId shiftedDcId) { in isTemporaryDcId() argument 70 auto dcId = BareDcId(shiftedDcId); in isTemporaryDcId() 74 inline DcId getRealIdFromTemporaryDcId(ShiftedDcId shiftedDcId) { in getRealIdFromTemporaryDcId() argument 75 auto dcId = BareDcId(shiftedDcId); in getRealIdFromTemporaryDcId() 80 auto dcId = BareDcId(shiftedDcId); in getTemporaryIdFromRealDcId() 101 constexpr bool isUploadDcId(ShiftedDcId shiftedDcId) { in isUploadDcId() argument 102 return (shiftedDcId >= details::uploadDcId(0, 0)) in isUploadDcId() 106 inline ShiftedDcId destroyKeyNextDcId(ShiftedDcId shiftedDcId) { in destroyKeyNextDcId() argument [all …]
|
H A D | mtp_instance.h | 93 void restart(ShiftedDcId shiftedDcId); 101 void killSession(ShiftedDcId shiftedDcId); 151 ShiftedDcId shiftedDcId = 0, 159 shiftedDcId, 170 ShiftedDcId shiftedDcId = 0, 176 shiftedDcId, 183 ShiftedDcId shiftedDcId, in sendProtocolMessage() argument 190 shiftedDcId, in sendProtocolMessage() 201 ShiftedDcId shiftedDcId, in sendSerialized() argument 209 shiftedDcId, in sendSerialized() [all …]
|
H A D | core_types.h | 51 constexpr DcId BareDcId(ShiftedDcId shiftedDcId) { in BareDcId() argument 52 return (shiftedDcId % kDcShift); in BareDcId() 59 constexpr int GetDcIdShift(ShiftedDcId shiftedDcId) { in GetDcIdShift() argument 60 return shiftedDcId / kDcShift; in GetDcIdShift()
|
H A D | config_loader.cpp | 53 mtpRequestId ConfigLoader::sendRequest(ShiftedDcId shiftedDcId) { in sendRequest() argument 67 shiftedDcId); in sendRequest()
|
H A D | mtproto_dc_options.cpp | 598 DcType DcOptions::dcType(ShiftedDcId shiftedDcId) const { in dcType() 599 if (isTemporaryDcId(shiftedDcId)) { in dcType() 603 if (_cdnDcIds.find(BareDcId(shiftedDcId)) != _cdnDcIds.cend()) { in dcType() 606 const auto dcId = BareDcId(shiftedDcId); in dcType() 607 if (isDownloadDcId(shiftedDcId) && hasMediaOnlyOptionsFor(dcId)) { in dcType()
|
H A D | config_loader.h | 38 mtpRequestId sendRequest(ShiftedDcId shiftedDcId);
|
H A D | session.cpp | 157 ShiftedDcId shiftedDcId, in Session() argument 160 , _shiftedDcId(shiftedDcId) in Session()
|
H A D | mtproto_dc_options.h | 107 [[nodiscard]] DcType dcType(ShiftedDcId shiftedDcId) const;
|
H A D | session.h | 139 ShiftedDcId shiftedDcId,
|
H A D | session_private.h | 38 ShiftedDcId shiftedDcId);
|
H A D | session_private.cpp | 147 ShiftedDcId shiftedDcId) in SessionPrivate() argument 150 , _shiftedDcId(shiftedDcId) in SessionPrivate() 1194 const auto shiftedDcId = _shiftedDcId; in waitReceivedFailed() local 1196 instance->restartedByTimeout(shiftedDcId); in waitReceivedFailed() 2440 const auto shiftedDcId = _shiftedDcId; in destroyOldEnoughPersistentKey() local 2443 instance->keyDestroyedOnServer(shiftedDcId, keyId); in destroyOldEnoughPersistentKey()
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/SourceFiles/storage/ |
H A D | download_manager_mtproto.cpp | 124 return MTP::isDownloadDcId(shiftedDcId); in __anon188a26980802() 127 MTP::BareDcId(shiftedDcId), 128 MTP::GetDcIdShift(shiftedDcId)); 514 const auto shiftedDcId = MTP::downloadDcId( in sendRequest() local 526 }).toDC(shiftedDcId).send(); in sendRequest() 539 }).toDC(shiftedDcId).send(); in sendRequest() 559 }).toDC(shiftedDcId).send(); in sendRequest() 571 }).toDC(shiftedDcId).send(); in sendRequest() 589 const auto shiftedDcId = MTP::downloadDcId( in requestMoreCdnFileHashes() local 599 }).toDC(shiftedDcId).send(); in requestMoreCdnFileHashes() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/SourceFiles/main/ |
H A D | main_account.cpp | 460 _mtp->setSessionResetHandler([=](MTP::ShiftedDcId shiftedDcId) { in startMtp() argument 462 if (shiftedDcId == _mtp->mainDcId()) { in startMtp()
|