MySocket.h
资源名称:tiaoqi.zip [点击查看]
上传用户:hlqcw8
上传日期:2007-01-08
资源大小:438k
文件大小:1k
源码类别:
棋牌游戏
开发平台:
Visual C++
- #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_)