summaryrefslogtreecommitdiff
path: root/protocols/YAMN/src/proto/netclient.h
blob: 2414dbdef1de88740e694bd06735d832428bd000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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