37 lines
668 B
C++
37 lines
668 B
C++
#ifndef _CCEX_PIPE_CLIENT_H__
|
|
#define _CCEX_PIPE_CLIENT_H__
|
|
#include "CCEXPipe.h"
|
|
#include "CCEXPipeLib.h"
|
|
|
|
class CCEXPipeClient :public CCEXPipeClientBase
|
|
{
|
|
friend unsigned int __stdcall g_PipClientThr(void* pPara);
|
|
|
|
public:
|
|
CCEXPipeClient();
|
|
~CCEXPipeClient();
|
|
|
|
protected:
|
|
virtual BOOL SendeData(const char* pData, int lLen);
|
|
virtual BOOL SendeMsg(int lMsgId, const char* pData, int lLen);
|
|
virtual BOOL Connect(const char* pPipeName);
|
|
virtual BOOL DisConnect();
|
|
|
|
unsigned int ClientThr();
|
|
|
|
private:
|
|
HANDLE m_hClientThr;
|
|
|
|
BOOL m_bConnect;
|
|
|
|
//本地连接端口号
|
|
short m_lPort;
|
|
|
|
SOCKET m_socket;
|
|
|
|
//socket同步访问保护
|
|
CRITICAL_SECTION m_cySocket;
|
|
};
|
|
|
|
|
|
#endif |