www.pudn.com > 6manager_server.rar > ClientSocket.cpp
// ClientSocket.cpp : implementation file
//
#include "stdafx.h"
#include "manager_server.h"
#include "ClientSocket.h"
#include "manager_serverDlg.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
void CClientSocket::OnReceive(int nErrorCode)
{
// TODO: Add your specialized code here and/or call the base class
((CManager_serverDlg *)(AfxGetApp()->m_pMainWnd))->GetSocketMsg(this);
//当有信息传递到时,调用主对话框类函数GetSocketMsg
//对信息进行接收
CSocket::OnReceive(nErrorCode);
}