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/vk_proto.h | |
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/vk_proto.h')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index 63647070a7..17c922a266 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -41,8 +41,10 @@ typedef void (CVkProto::*VK_REQUEST_HANDLER)(NETLIBHTTPREQUEST*, struct AsyncHtt struct AsyncHttpRequest : public NETLIBHTTPREQUEST, public MZeroedObject
{
+ enum RequestPriority { rpLow, rpMedium, rpHigh };
+
AsyncHttpRequest();
- AsyncHttpRequest(CVkProto*, int iRequestType, LPCSTR szUrl, bool bSecure, VK_REQUEST_HANDLER pFunc);
+ AsyncHttpRequest(CVkProto*, int iRequestType, LPCSTR szUrl, bool bSecure, VK_REQUEST_HANDLER pFunc, RequestPriority rpPriority = rpMedium);
~AsyncHttpRequest();
void AddHeader(LPCSTR, LPCSTR);
@@ -53,6 +55,8 @@ struct AsyncHttpRequest : public NETLIBHTTPREQUEST, public MZeroedObject VK_REQUEST_HANDLER m_pFunc;
void *pUserInfo;
int m_iRetry;
+ RequestPriority m_priority;
+ time_t m_time;
bool m_bApiReq;
bool bExpUrlEncode;
bool bNeedsRestart, bIsMainConn;
|