diff options
Diffstat (limited to 'plugins/YAMN/src/proto/netlib.h')
-rw-r--r-- | plugins/YAMN/src/proto/netlib.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/plugins/YAMN/src/proto/netlib.h b/plugins/YAMN/src/proto/netlib.h deleted file mode 100644 index fd00ed6b84..0000000000 --- a/plugins/YAMN/src/proto/netlib.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef __NETLIB_H
-#define __NETLIB_H
-
-class CNLClient: public CNetClient
-{
-public:
- CNLClient(): hConnection(nullptr) {}
- void Connect(const char* servername, const int port) throw(DWORD);
- void Send(const char *query) throw(DWORD);
- char* Recv(char *buf= nullptr, int buflen = 65536) throw(DWORD);
- void Disconnect();
- void SSLify()throw(DWORD);
-
- inline BOOL Connected() {return hConnection != nullptr;}
-
-protected:
- HNETLIBCONN hConnection;
- BOOL isTLSed;
- 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, ...);
-
-enum
-{
- ENL_WINSOCKINIT=1, //error initializing socket //only wsock
- ENL_GETHOSTBYNAME, //DNS error //only wsock
- ENL_CREATESOCKET, //error creating socket //only wsock
- ENL_CONNECT, //cannot connect to server
- ENL_SEND, //cannot send data
- ENL_RECV, //cannot receive data
- ENL_RECVALLOC, //cannot allocate memory for received data
- ENL_TIMEOUT, //timed out during recv
-};
-
-enum
-{
- ESSL_NOTLOADED=1, //OpenSSL is not loaded
- ESSL_WINSOCKINIT, //WinSock 2.0 init failed
- ESSL_GETHOSTBYNAME, //DNS error
- ESSL_CREATESOCKET, //error creating socket
- ESSL_SOCKETCONNECT, //error connecting with socket
- ESSL_CREATESSL, //error creating SSL session structure
- ESSL_SETSOCKET, //error connect socket with SSL session for bidirect I/O space
- ESSL_CONNECT, //cannot connect to server
- ESSL_SEND, //cannot send data
- ESSL_RECV, //cannot receive data
- ESSL_RECVALLOC, //cannot allocate memory for received data
-};
-#endif
|