Rewrote DCC server to allow for multiple threads, also added DCC recv.

(DCC recv still broken, threading buggy)
This commit is contained in:
Brendan Walker
2002-12-08 19:40:18 +00:00
parent fab23817c5
commit e731ee03ed
14 changed files with 1515 additions and 259 deletions
+3 -8
View File
@@ -32,7 +32,7 @@ CSendFileDialog::CSendFileDialog(CWnd* pParent /*=NULL*/)
m_ToFrom = _T("");
//}}AFX_DATA_INIT
m_pDCCServer = NULL;
m_bIsCanceled = false;
}
@@ -65,13 +65,8 @@ END_MESSAGE_MAP()
void CSendFileDialog::OnCancel()
{
//Tell the DCC Server to abort as the file isn't transfering
// or the user has beome impatient :)
if (m_pDCCServer)
{
CIrcDCCServer* pServer = (CIrcDCCServer *)m_pDCCServer;
pServer->Stop(0);
}
//Thread is going to check up on us to see if it's time to bail
m_bIsCanceled = true;
CDialog::OnCancel();
}