From 570fc8a9888f51c7a397b4d309762e7d313ef158 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 13 Oct 2013 07:59:50 +0000 Subject: - copied constants from documentation - updates connection removed git-svn-id: http://svn.miranda-ng.org/main/trunk@6476 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_thread.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'protocols/VKontakte/src/vk_thread.cpp') 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); } -- cgit v1.2.3