2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

added connection implementations to git, protocol improved

This commit is contained in:
John Preston
2016-03-24 15:57:10 +03:00
parent ad53185645
commit 7c99f947eb
27 changed files with 1663 additions and 209 deletions

View File

@@ -73,10 +73,10 @@ public:
return _salt;
}
const mtpAuthKeyPtr &getKey() const {
const AuthKeyPtr &getKey() const {
return _authKey;
}
void setKey(const mtpAuthKeyPtr &key) {
void setKey(const AuthKeyPtr &key) {
if (_authKey != key) {
uint64 session = rand_value<uint64>();
_authKey = key;
@@ -200,7 +200,7 @@ private:
Session *_owner;
mtpAuthKeyPtr _authKey;
AuthKeyPtr _authKey;
bool _keyChecked, _layerInited;
mtpPreRequestMap toSend; // map of request_id -> request, that is waiting to be sent
@@ -240,7 +240,7 @@ public:
~Session();
QReadWriteLock *keyMutex() const;
void notifyKeyCreated(const mtpAuthKeyPtr &key);
void notifyKeyCreated(const AuthKeyPtr &key);
void destroyKey();
void notifyLayerInited(bool wasInited);
@@ -292,7 +292,7 @@ private:
SessionData data;
int32 dcWithShift;
MTProtoDCPtr dc;
DcenterPtr dc;
uint64 msSendCall, msWait;