From d3cb19278d60ac6f7963379254546cdca36a90e2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 14 Jan 2017 01:22:55 +0300 Subject: separate handle types for HNETLIBCONN & HNETLIBBIND --- plugins/YAMN/src/proto/netlib.cpp | 4 ++-- plugins/YAMN/src/proto/netlib.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/YAMN/src/proto') diff --git a/plugins/YAMN/src/proto/netlib.cpp b/plugins/YAMN/src/proto/netlib.cpp index 64da34ed8d..b737dc89e2 100644 --- a/plugins/YAMN/src/proto/netlib.cpp +++ b/plugins/YAMN/src/proto/netlib.cpp @@ -116,7 +116,7 @@ void CNLClient::Connect(const char* servername, const int port) throw(DWORD) //Performs a simple query // query- command to send -int CNLClient::LocalNetlib_Send(HANDLE hConn, const char *buf, int len, int flags) +int CNLClient::LocalNetlib_Send(HNETLIBCONN hConn, const char *buf, int len, int flags) { return Netlib_Send(hConn, buf, len, flags); } @@ -156,7 +156,7 @@ void CNLClient::Send(const char *query) throw(DWORD) //You need free() returned buffer, which can be allocated in this function //if not success, exception is throwed -int CNLClient::LocalNetlib_Recv(HANDLE hConn, char *buf, int len, int flags) +int CNLClient::LocalNetlib_Recv(HNETLIBCONN hConn, char *buf, int len, int flags) { int iReturn = Netlib_Recv(hConn, buf, len, flags); if (isTLSed) { diff --git a/plugins/YAMN/src/proto/netlib.h b/plugins/YAMN/src/proto/netlib.h index 17259cf219..de41a6ad04 100644 --- a/plugins/YAMN/src/proto/netlib.h +++ b/plugins/YAMN/src/proto/netlib.h @@ -14,10 +14,10 @@ public: inline BOOL Connected() {return hConnection!=NULL;} protected: - HANDLE hConnection; + HNETLIBCONN hConnection; BOOL isTLSed; - int LocalNetlib_Send(HANDLE hConn,const char *buf,int len,int flags); - int LocalNetlib_Recv(HANDLE hConn,char *buf,int len,int flags); + int LocalNetlib_Send(HNETLIBCONN hConn, const char *buf, int len, int flags); + int LocalNetlib_Recv(HNETLIBCONN hConn, char *buf, int len, int flags); }; void SSL_DebugLog(const char *fmt, ...); -- cgit v1.2.3