📄 qtcpmsgclient.h
字号:
//---------------------------------------------------------------------------
#ifndef QTcpMsgClientH
#define QTcpMsgClientH
#include "Interface_QTcpMsgClient.H"
#include "../QTemplateBase/QTemplateBase.h"
namespace N_QTcpMsgClient {
//---------------------------------------------------------------------------
class QTcpMsgClient : public IQTcpMsgClient
{
public:
__stdcall QTcpMsgClient();
virtual __stdcall ~QTcpMsgClient();
virtual void __stdcall Release(void);
virtual bool __stdcall Start(const std::string& Addr, unsigned int Port, const std::string& EndSign, unsigned int MaxPackage);
virtual bool __stdcall IsPowerOn(void)const;
virtual void __stdcall Stop(void);
virtual bool __stdcall Send(const std::string& Msg);
virtual bool __stdcall GetQueuedMsg(std::string* pMsg);
virtual void __stdcall Process(void);
private:
void __stdcall ProcessRecv(void);
void __stdcall ProcessSend(void);
private:
int m_Socket;
unsigned int m_MaxPackage;
std::string m_EndSign;
std::string m_RecvBuf;
std::string m_SendBuf;
QBasicMsg<std::string> m_Msg;
};
//---------------------------------------------------------------------------
}//namespace
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -