diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-13 07:59:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-13 07:59:50 +0000 |
commit | 570fc8a9888f51c7a397b4d309762e7d313ef158 (patch) | |
tree | 995736b74f09dd633e4c572ee5648d7323ac8be7 /protocols/VKontakte/src/vk_thread.cpp | |
parent | 7ee4e8dc6a95e14c5d565f6172be02ea5ee1f4d9 (diff) |
- copied constants from documentation
- updates connection removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@6476 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 50bb8df30e..71b572e903 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -490,7 +490,6 @@ int CVkProto::PollServer() req.requestType = REQUEST_GET;
req.szUrl = NEWSTR_ALLOCA(CMStringA().Format("%s?act=a_check&key=%s&ts=%s&wait=25&access_token=%s", m_pollingServer, m_pollingKey, m_pollingTs, m_szAccessToken));
req.flags = NLHRF_NODUMPHEADERS | NLHRF_HTTP11 | NLHRF_PERSISTENT;
- req.nlc = m_pollingConn;
req.timeout = 30000;
NETLIBHTTPREQUEST *reply = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)&req);
@@ -516,16 +515,7 @@ int CVkProto::PollServer() void CVkProto::PollingThread(void*)
{
- NETLIBOPENCONNECTION nloc = { sizeof(nloc) };
- nloc.flags = NLOCF_HTTP | NLOCF_V2;
- nloc.szHost = m_pollingServer;
- nloc.wPort = 80; // shame! shame! shame!
- if ((m_pollingConn = (HANDLE)CallService(MS_NETLIB_OPENCONNECTION, (WPARAM)m_hNetlibUser, (LPARAM)&nloc)) == NULL)
- return;
-
while (!m_bTerminated)
if (PollServer() == -1)
break;
-
- CallService(MS_NETLIB_CLOSEHANDLE, (WPARAM)m_pollingConn, 0);
}
|