diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-03-21 16:20:52 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-03-21 16:20:52 +0000 |
commit | 1b05ca00694530f1ec25fae6f7bf850895748b30 (patch) | |
tree | c4f5ceeb39334423a108ae60f189fa5fbd308736 /protocols/VKontakte/src/misc.cpp | |
parent | 7f657fce5090d089d0600d815a6db93050562f12 (diff) |
VKontakte:
m_arRequestsQueue as queue with priority
set high priority for sending and receiving messages
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@12471 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 1be32e9de0..043c92acaa 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -156,9 +156,11 @@ AsyncHttpRequest::AsyncHttpRequest() bIsMainConn = false;
m_pFunc = NULL;
bExpUrlEncode = false;
+ m_time = time(NULL);
+ m_priority = rpLow;
}
-AsyncHttpRequest::AsyncHttpRequest(CVkProto *ppro, int iRequestType, LPCSTR _url, bool bSecure, VK_REQUEST_HANDLER pFunc)
+AsyncHttpRequest::AsyncHttpRequest(CVkProto *ppro, int iRequestType, LPCSTR _url, bool bSecure, VK_REQUEST_HANDLER pFunc, RequestPriority rpPriority)
{
cbSize = sizeof(NETLIBHTTPREQUEST);
m_bApiReq = true;
@@ -186,6 +188,8 @@ AsyncHttpRequest::AsyncHttpRequest(CVkProto *ppro, int iRequestType, LPCSTR _url pUserInfo = NULL;
m_iRetry = MAX_RETRIES;
bNeedsRestart = false;
+ m_time = time(NULL);
+ m_priority = rpPriority;
}
AsyncHttpRequest::~AsyncHttpRequest()
|