From bb03623fd3ba7b9cc456da2c9504bad87b80ace0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jan 2017 19:51:30 +0300 Subject: - Netlib_Send & Netlib_Recv helpers became real functions, MS_NETLIB_SEND & MS_NETLIB_RECV died; - fix for dumping chunked http replies into a network log --- plugins/YAMN/src/proto/netlib.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'plugins/YAMN/src') diff --git a/plugins/YAMN/src/proto/netlib.cpp b/plugins/YAMN/src/proto/netlib.cpp index 0d8df55ab1..cc8f73a602 100644 --- a/plugins/YAMN/src/proto/netlib.cpp +++ b/plugins/YAMN/src/proto/netlib.cpp @@ -119,14 +119,7 @@ void CNLClient::Connect(const char* servername, const int port) throw(DWORD) // query- command to send int CNLClient::LocalNetlib_Send(HANDLE hConn, const char *buf, int len, int flags) { - if (isTLSed) { - #ifdef DEBUG_COMM - SSL_DebugLog("SSL send: %s", buf); - #endif - } - - NETLIBBUFFER nlb = { (char*)buf,len,flags }; - return CallService(MS_NETLIB_SEND, (WPARAM)hConn, (LPARAM)&nlb); + return Netlib_Send(hConn, buf, len, flags); } void CNLClient::Send(const char *query) throw(DWORD) @@ -166,8 +159,7 @@ void CNLClient::Send(const char *query) throw(DWORD) int CNLClient::LocalNetlib_Recv(HANDLE hConn, char *buf, int len, int flags) { - NETLIBBUFFER nlb = { buf,len,flags }; - int iReturn = CallService(MS_NETLIB_RECV, (WPARAM)hConn, (LPARAM)&nlb); + int iReturn = Netlib_Recv(hConn, buf, len, flags); if (isTLSed) { #ifdef DEBUG_COMM SSL_DebugLog("SSL recv: %s", buf); -- cgit v1.2.3