ClientSocket.cpp
资源名称:VC6.0.rar [点击查看]
上传用户:qdhmjx
上传日期:2022-07-11
资源大小:2226k
文件大小:1k
源码类别:
书籍源码
开发平台:
Visual C++
- // ClientSocket.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ex126Svr.h"
- #include "ClientSocket.h"
- #include "ex126SvrDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CClientSocket
- CClientSocket::CClientSocket()
- {
- }
- CClientSocket::~CClientSocket()
- {
- }
- // Do not edit the following lines, which are needed by ClassWizard.
- #if 0
- BEGIN_MESSAGE_MAP(CClientSocket, CSocket)
- //{{AFX_MSG_MAP(CClientSocket)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- #endif // 0
- /////////////////////////////////////////////////////////////////////////////
- // CClientSocket member functions
- CClientSocket::CClientSocket(CEx126SvrDlg *pDlg)
- {
- m_pDlg=pDlg;
- }
- void CClientSocket::OnReceive(int nErrorCode)
- {
- CSocket::OnReceive(nErrorCode);
- if(m_pDlg)
- { //让主对话框处理
- m_pDlg->ProcessPendingRead(this);
- }
- }