www.pudn.com > FTP.rar > UserSocket.cpp


// UserSocket.cpp : implementation file 
// 
 
#include "StdAfx.h" 
#include "UserSocket.h" 
#include "ClientDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CUserSocket 
 
CUserSocket::CUserSocket(CClientDlg *dlg) 
{ 
	u_dlg=dlg; 
} 
 
CUserSocket::~CUserSocket() 
{ 
} 
 
 
// Do not edit the following lines, which are needed by ClassWizard. 
#if 0 
BEGIN_MESSAGE_MAP(CUserSocket, CSocket) 
	//{{AFX_MSG_MAP(CUserSocket) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
#endif	// 0 
 
///////////////////////////////////////////////////////////////////////////// 
// CUserSocket member functions 
 
void CUserSocket::OnReceive(int nErrorCode)  
{ 
	u_dlg->ReceiveData(); 
	 
	CSocket::OnReceive(nErrorCode); 
}