📄 mysocket.h
字号:
#pragma once
// CMySocket 命令目标
class CTcp2ComDlg;
class CMySocket : public CAsyncSocket
{
public:
static const MAX_BUF_LEN = 2048;
CTcp2ComDlg *m_pParent;
char m_sendBuf[MAX_BUF_LEN];
int m_nSendCnt;
char m_recvBuf[MAX_BUF_LEN];
int m_nRecvCnt;
CString m_strNO;
CMySocket(CTcp2ComDlg *pParent);
virtual ~CMySocket();
public:
virtual void OnConnect(int nErrorCode);
virtual void OnReceive(int nErrorCode);
virtual void OnClose(int nErrorCode);
virtual void OnSend(int nErrorCode);
private:
void OnError(void);
public:
void NO( const CString& strNO ){m_strNO=strNO;}
void SendSvr(const char * pbuf, int nLen);
int RecvSvr(char * pBuf);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -