// ListenChat.cpp : implementation file
//

#include "stdafx.h"
#include "ChatServer.h"
#include "ListenChat.h"

#include "ChatServerDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CListenChat

CListenChat::CListenChat()
{
}

CListenChat::~CListenChat()
{
}


// Do not edit the following lines, which are needed by ClassWizard.
#if 0
BEGIN_MESSAGE_MAP(CListenChat, CAsyncSocket)
	//{{AFX_MSG_MAP(CListenChat)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#endif	// 0

/////////////////////////////////////////////////////////////////////////////
// CListenChat member functions

void CListenChat::OnAccept(int nErrorCode) 
{
	// TODO: Add your specialized code here and/or call the base class
//**********************************************************************
	m_pdlg->ProcessAccept();
//**********************************************************************
	CAsyncSocket::OnAccept(nErrorCode);
}

//**************************************************************************
CListenChat::CListenChat( CChatServerDlg* dlg )
{
	m_pdlg = dlg;
}

//**************************************************************************


