Don't send ack request when handshaking
This commit is contained in:
parent
f56f434b23
commit
1f553870bf
@ -35,6 +35,12 @@ public:
|
|||||||
void setOverrideProxy(std::string address, uint16_t port, std::string username, std::string password, std::string secret);
|
void setOverrideProxy(std::string address, uint16_t port, std::string username, std::string password, std::string secret);
|
||||||
void onHostNameResolved(std::string host, std::string ip, bool ipv6);
|
void onHostNameResolved(std::string host, std::string ip, bool ipv6);
|
||||||
|
|
||||||
|
std::string overrideProxyUser = "";
|
||||||
|
std::string overrideProxyPassword = "";
|
||||||
|
std::string overrideProxyAddress = "";
|
||||||
|
std::string overrideProxySecret = "";
|
||||||
|
uint16_t overrideProxyPort = 1080;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int32_t instanceNum;
|
int32_t instanceNum;
|
||||||
void onEvent(uint32_t events);
|
void onEvent(uint32_t events);
|
||||||
@ -46,12 +52,6 @@ protected:
|
|||||||
virtual void onConnected() = 0;
|
virtual void onConnected() = 0;
|
||||||
virtual bool hasPendingRequests() = 0;
|
virtual bool hasPendingRequests() = 0;
|
||||||
|
|
||||||
std::string overrideProxyUser = "";
|
|
||||||
std::string overrideProxyPassword = "";
|
|
||||||
std::string overrideProxyAddress = "";
|
|
||||||
std::string overrideProxySecret = "";
|
|
||||||
uint16_t overrideProxyPort = 1080;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ByteStream *outgoingByteStream = nullptr;
|
ByteStream *outgoingByteStream = nullptr;
|
||||||
struct epoll_event eventMask;
|
struct epoll_event eventMask;
|
||||||
|
@ -911,9 +911,9 @@ void Handshake::processHandshakeResponse(TLObject *message, int64_t messageId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Handshake::sendAckRequest(int64_t messageId) {
|
void Handshake::sendAckRequest(int64_t messageId) {
|
||||||
TL_msgs_ack *msgsAck = new TL_msgs_ack();
|
/*TL_msgs_ack *msgsAck = new TL_msgs_ack();
|
||||||
msgsAck->msg_ids.push_back(messageId);
|
msgsAck->msg_ids.push_back(messageId);
|
||||||
sendRequestData(msgsAck, false);
|
sendRequestData(msgsAck, false);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
TLObject *Handshake::getCurrentHandshakeRequest() {
|
TLObject *Handshake::getCurrentHandshakeRequest() {
|
||||||
|
Loading…
Reference in New Issue
Block a user