diff options
author | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-17 12:37:21 +0000 |
---|---|---|
committer | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-17 12:37:21 +0000 |
commit | 3c0233134bc5a8e42e3a621f0a5eef2aaf487474 (patch) | |
tree | 30e49d3065aa387392028a54ef3c1ee7294b9e1e /yamn/proto/netclient.h | |
parent | 9139772a56e38f15e08f1a4a3215cfd402f85dde (diff) |
adding from berlios: dbx_tree, lastseen-mod, nudge, yamn
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@173 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'yamn/proto/netclient.h')
-rw-r--r-- | yamn/proto/netclient.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/yamn/proto/netclient.h b/yamn/proto/netclient.h new file mode 100644 index 0000000..2414dbd --- /dev/null +++ b/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
|