www.pudn.com > tiaoqi.zip > MySocket.h


#if !defined(AFX_MYSOCKET_H__98398EA1_344E_11D5_8041_444553540000__INCLUDED_) 
#define AFX_MYSOCKET_H__98398EA1_344E_11D5_8041_444553540000__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// MySocket.h : header file 
// 
 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CMySocket command target 
 
class CMySocket : public CAsyncSocket 
{ 
// Attributes 
public: 
	void SetParent(CWnd* pWnd); 
 
// Operations 
public: 
	CMySocket(); 
	virtual ~CMySocket(); 
 
// Overrides 
public: 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMySocket) 
	public: 
	virtual void OnAccept(int nErrorCode); 
	virtual void OnClose(int nErrorCode); 
	virtual void OnConnect(int nErrorCode); 
	virtual void OnSend(int nErrorCode); 
	virtual void OnReceive(int nErrorCode); 
	//}}AFX_VIRTUAL 
 
	// Generated message map functions 
	//{{AFX_MSG(CMySocket) 
		// NOTE - the ClassWizard will add and remove member functions here. 
	//}}AFX_MSG 
 
// Implementation 
protected: 
 
private: 
	CWnd * m_pWnd; 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MYSOCKET_H__98398EA1_344E_11D5_8041_444553540000__INCLUDED_)