⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientsock.h

📁 一个完整的数字硬盘录像机系统软件
💻 H
字号:
// clntsock.h : interface of the CClientSocket class

#ifndef __CLNTSOCK_H__
#define __CLNTSOCK_H__
class CCommandMsg;
class CDataMsg;
class CClientSocket : public CSocket
{
	DECLARE_DYNAMIC(CClientSocket);
// Construction
private:
	CClientSocket(const CClientSocket& rSrc);         // no implementation
	void operator=(const CClientSocket& rSrc);  // no implementation
public:
	CClientSocket();
// Attributes
public:
	CSocketFile*         m_pFile;
	CArchive*            m_pArchiveIn;
	CArchive*            m_pArchiveOut;
	CString              m_sClientIP;
	BOOL                 IsAborted() 
	{ 
		return m_pArchiveOut == NULL; 
	}
// Operations
public:
	void                 Init();
	void                 Abort();
	void                 SendMsg(CDataMsg* pMsg);
	void                 ReceiveMsg(CCommandMsg* pMsg);
	CString              GetClientIP();
// Overridable callbacks
protected:
	virtual void     OnReceive(int nErrorCode);
// Implementation
public:
	virtual ~CClientSocket();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
};
#endif // __CLNTSOCK_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -