From 48540940b6c28bb4378abfeb500ec45a625b37b6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 15 May 2012 10:38:20 +0000 Subject: initial commit git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAMN/proto/netclient.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 plugins/YAMN/proto/netclient.h (limited to 'plugins/YAMN/proto/netclient.h') diff --git a/plugins/YAMN/proto/netclient.h b/plugins/YAMN/proto/netclient.h new file mode 100644 index 0000000000..2414dbdef1 --- /dev/null +++ b/plugins/YAMN/proto/netclient.h @@ -0,0 +1,22 @@ +#ifndef __CLIENT_H +#define __CLIENT_H + +class CNetClient +{ +public: + CNetClient(): Stopped(FALSE) {} + virtual void Connect(const char* servername,const int port)=0; + virtual void Send(const char *query)=0; + virtual char* Recv(char *buf=NULL,int buflen=65536)=0; + virtual void Disconnect()=0; + virtual BOOL Connected()=0; + virtual void SSLify()=0; + + BOOL Stopped; + int Rcv; + DWORD NetworkError; + DWORD SystemError; + BOOL ifTLSed; +}; + +#endif -- cgit v1.2.3