Home
last modified time | relevance | path

Searched refs:shiftedDcId (Results 1 – 14 of 14) sorted by relevance

/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/SourceFiles/mtproto/
H A Dmtp_instance.cpp331 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 Dfacade.h60 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 Dmtp_instance.h93 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 Dcore_types.h51 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 Dconfig_loader.cpp53 mtpRequestId ConfigLoader::sendRequest(ShiftedDcId shiftedDcId) { in sendRequest() argument
67 shiftedDcId); in sendRequest()
H A Dmtproto_dc_options.cpp598 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 Dconfig_loader.h38 mtpRequestId sendRequest(ShiftedDcId shiftedDcId);
H A Dsession.cpp157 ShiftedDcId shiftedDcId, in Session() argument
160 , _shiftedDcId(shiftedDcId) in Session()
H A Dmtproto_dc_options.h107 [[nodiscard]] DcType dcType(ShiftedDcId shiftedDcId) const;
H A Dsession.h139 ShiftedDcId shiftedDcId,
H A Dsession_private.h38 ShiftedDcId shiftedDcId);
H A Dsession_private.cpp147 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 Ddownload_manager_mtproto.cpp124 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 Dmain_account.cpp460 _mtp->setSessionResetHandler([=](MTP::ShiftedDcId shiftedDcId) { in startMtp() argument
462 if (shiftedDcId == _mtp->mainDcId()) { in startMtp()