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