This commit is contained in:
65
HookMsg/ClientSocket.h
Normal file
65
HookMsg/ClientSocket.h
Normal file
@@ -0,0 +1,65 @@
|
||||
#if !defined(AFX_CLIENTSOCKET_H__3B8B0270_0C17_49DE_BBA1_6AA70E51C29D__INCLUDED_)
|
||||
#define AFX_CLIENTSOCKET_H__3B8B0270_0C17_49DE_BBA1_6AA70E51C29D__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// ClientSocket.h : header file
|
||||
//
|
||||
|
||||
class CHookMsgDlg;
|
||||
class CComData;
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CClientSocket command target
|
||||
|
||||
class CClientSocket : public CSocket
|
||||
{
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
private:
|
||||
CHookMsgDlg* m_pMain;
|
||||
CSocketFile* m_pSocketFile;
|
||||
CArchive* m_pArchiveIn;
|
||||
CArchive* m_pArchiveOut;
|
||||
|
||||
CString m_szSignInName;
|
||||
|
||||
// Operations
|
||||
public:
|
||||
CClientSocket(CHookMsgDlg* pMain, CString szSignInName);
|
||||
virtual ~CClientSocket();
|
||||
void ClientSignOut();
|
||||
CString GetSignInName() { return m_szSignInName; }
|
||||
void SendClientMessage(CString szMessage);
|
||||
|
||||
private:
|
||||
void Finalize();
|
||||
void ProcessServerCom();
|
||||
void SendCom(CComData* pComData);
|
||||
|
||||
// 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__3B8B0270_0C17_49DE_BBA1_6AA70E51C29D__INCLUDED_)
|
||||
Reference in New Issue
Block a user