MySocket.cpp
资源名称:tiaoqi.zip [点击查看]
上传用户:hlqcw8
上传日期:2007-01-08
资源大小:438k
文件大小:2k
源码类别:
棋牌游戏
开发平台:
Visual C++
- // MySocket.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ttq.h"
- #include "MySocket.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CMySocket
- CMySocket::CMySocket()
- {
- }
- CMySocket::~CMySocket()
- {
- }
- // Do not edit the following lines, which are needed by ClassWizard.
- #if 0
- BEGIN_MESSAGE_MAP(CMySocket, CAsyncSocket)
- //{{AFX_MSG_MAP(CMySocket)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- #endif // 0
- /////////////////////////////////////////////////////////////////////////////
- // CMySocket member functions
- void CMySocket::SetParent(CWnd *pWnd)
- {
- // Set the member pointer
- m_pWnd = pWnd;
- }
- void CMySocket::OnAccept(int nErrorCode)
- {
- // TODO: Add your specialized code here and/or call the base class
- CAsyncSocket::OnAccept(nErrorCode);
- }
- void CMySocket::OnClose(int nErrorCode)
- {
- // TODO: Add your specialized code here and/or call the base class
- CAsyncSocket::OnClose(nErrorCode);
- }
- void CMySocket::OnConnect(int nErrorCode)
- {
- // TODO: Add your specialized code here and/or call the base class
- CAsyncSocket::OnConnect(nErrorCode);
- }
- void CMySocket::OnSend(int nErrorCode)
- {
- // TODO: Add your specialized code here and/or call the base class
- CAsyncSocket::OnSend(nErrorCode);
- }
- void CMySocket::OnReceive(int nErrorCode)
- {
- // TODO: Add your specialized code here and/or call the base class
- CAsyncSocket::OnReceive(nErrorCode);
- }