summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_queue.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-13 07:47:08 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-13 07:47:08 +0000
commit7ee4e8dc6a95e14c5d565f6172be02ea5ee1f4d9 (patch)
treebd94d553ddb796e58da365c93e13f6d0a3307b9e /protocols/VKontakte/src/vk_queue.cpp
parent2224b7cfa5a1adb17fcec0e14fa3c5e507446291 (diff)
userid became LONG everywhere
git-svn-id: http://svn.miranda-ng.org/main/trunk@6475 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_queue.cpp')
-rw-r--r--protocols/VKontakte/src/vk_queue.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp
index 6efc4d29ea..8ccb048df3 100644
--- a/protocols/VKontakte/src/vk_queue.cpp
+++ b/protocols/VKontakte/src/vk_queue.cpp
@@ -32,22 +32,6 @@ void CVkProto::UninitQueue()
/////////////////////////////////////////////////////////////////////////////////////////
-int CVkProto::SetupConnection()
-{
- if (m_hNetlibConn != NULL)
- return TRUE;
-
- NETLIBOPENCONNECTION nloc = { sizeof(nloc) };
- nloc.flags = NLOCF_SSL | NLOCF_HTTP | NLOCF_V2;
- nloc.szHost = VK_API_URL;
- nloc.wPort = 443;
- nloc.timeout = 5000;
- m_hNetlibConn = (HANDLE)CallService(MS_NETLIB_OPENCONNECTION, (WPARAM)m_hNetlibUser, (LPARAM)&nloc);
- return m_hNetlibConn != NULL;
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
void CVkProto::ExecuteRequest(AsyncHttpRequest *pReq)
{
NETLIBHTTPREQUEST *reply = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)pReq);
@@ -63,9 +47,6 @@ void CVkProto::ExecuteRequest(AsyncHttpRequest *pReq)
bool CVkProto::PushAsyncHttpRequest(int iRequestType, LPCSTR szUrl, bool bSecure, VK_REQUEST_HANDLER pFunc, int nParams, HttpParam *pParams, int iTimeout)
{
- if ( !SetupConnection())
- return false;
-
AsyncHttpRequest *pReq = new AsyncHttpRequest();
pReq->flags = NLHRF_NODUMPHEADERS | NLHRF_DUMPASTEXT | NLHRF_PERSISTENT | NLHRF_HTTP11 | NLHRF_REDIRECT;
if (bSecure)
@@ -75,7 +56,6 @@ bool CVkProto::PushAsyncHttpRequest(int iRequestType, LPCSTR szUrl, bool bSecure
if (*szUrl == '/') {
url = VK_API_URL;
url += szUrl;
- pReq->nlc = m_hNetlibConn;
}
else url = szUrl;