From 06c605dc41d12b63b0daf314ef1bcc4c0e9ee2d1 Mon Sep 17 00:00:00 2001 From: mjjo Date: Sat, 20 Jul 2013 23:25:43 +0000 Subject: [PATCH] --- CheckServer/ClientSocket.h | 61 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 CheckServer/ClientSocket.h diff --git a/CheckServer/ClientSocket.h b/CheckServer/ClientSocket.h new file mode 100644 index 0000000..339d5fa --- /dev/null +++ b/CheckServer/ClientSocket.h @@ -0,0 +1,61 @@ +#if !defined(AFX_CLIENTSOCKET_H__EC927DD3_D49B_4AAB_A675_2E5CE2BDB9AA__INCLUDED_) +#define AFX_CLIENTSOCKET_H__EC927DD3_D49B_4AAB_A675_2E5CE2BDB9AA__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 +// ClientSocket.h : header file +// + +class CServerSocket; +class CComData; + +///////////////////////////////////////////////////////////////////////////// +// CClientSocket command target + +class CClientSocket : public CSocket +{ +// Attributes +public: + +private: + CServerSocket* m_pServerSocket; + CSocketFile* m_pSocketFile; + CArchive* m_pArchiveIn; + CArchive* m_pArchiveOut; + +// Operations +public: + CClientSocket(CServerSocket* pServerSocket); + virtual ~CClientSocket(); + + void Init(); + BOOL SendCom(CComData* pComData); + void ReceiveCom(CComData* pComData); + +private: + void Finalize(); + +// Overrides +public: + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CClientSocket) + public: + virtual void OnReceive(int nErrorCode); + //}}AFX_VIRTUAL + + // Generated message map functions + //{{AFX_MSG(CClientSocket) + // NOTE - the ClassWizard will add and remove member functions here. + //}}AFX_MSG + +// Implementation +protected: +}; + +///////////////////////////////////////////////////////////////////////////// + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_CLIENTSOCKET_H__EC927DD3_D49B_4AAB_A675_2E5CE2BDB9AA__INCLUDED_)