#include <ChatCore.h>
Public Member Functions | |
CChatCore () | |
virtual | ~CChatCore () |
POSITION | GetIterator () const |
CChatSession * | GetNext (POSITION &pos) const |
int | GetCount () const |
BOOL | Check (CChatSession *pSession) const |
void | Close () |
void | OnAccept (CConnection *pConnection, PROTOCOLID nProtocol=PROTOCOL_NULL) |
BOOL | OnPush (GGUID *pGUID, CConnection *pConnection) |
void | OnED2KMessage (CEDClient *pClient, CEDPacket *pPacket) |
CChatSession * | FindSession (CEDClient *pClient) |
void | StopThread () |
Public Attributes | |
CMutex | m_pSection |
Protected Member Functions | |
void | Add (CChatSession *pSession) |
void | Remove (CChatSession *pSession) |
void | StartThread () |
void | OnRun () |
Static Protected Member Functions | |
static UINT | ThreadStart (LPVOID pParam) |
Protected Attributes | |
CPtrList | m_pSessions |
HANDLE | m_hThread |
BOOL | m_bThread |
CEvent | m_pWakeup |
Friends | |
class | CChatSession |
|
Definition at line 42 of file ChatCore.cpp. |
|
Definition at line 48 of file ChatCore.cpp. References Close(). |
|
Definition at line 188 of file ChatCore.cpp. References m_pSection, m_pSessions, m_pWakeup, NULL, and StartThread(). Referenced by CChatSession::AttachTo(), CChatSession::CChatSession(), CChatSession::Connect(), FindSession(), and CChatSession::OnPush(). |
|
Definition at line 71 of file ChatCore.cpp. References m_pSessions, and NULL. Referenced by CMainWnd::OnOpenChat(). |
|
Definition at line 206 of file ChatCore.cpp. References GetIterator(), GetNext(), and StopThread(). Referenced by ~CChatCore(). |
|
|
Definition at line 66 of file ChatCore.cpp. References m_pSessions. Referenced by OnRun(), and StartThread(). |
|
Definition at line 56 of file ChatCore.cpp. References m_pSessions. Referenced by Close(), FindSession(), OnPush(), and OnRun(). |
|
Definition at line 61 of file ChatCore.cpp. References m_pSessions. Referenced by Close(), FindSession(), OnPush(), and OnRun(). |
|
Definition at line 79 of file ChatCore.cpp. References CChatSession::AttachTo(), CChatSession, CChatSession::m_nProtocol, and m_pSection. Referenced by CHandshake::OnRead(). |
|
Definition at line 108 of file ChatCore.cpp. References FindSession(), m_pSection, NULL, and CChatSession::OnED2KMessage(). Referenced by CEDClient::OnMessage(), and CEDClient::OnRun(). |
|
Definition at line 91 of file ChatCore.cpp. References GetIterator(), GetNext(), m_pSection, and CChatSession::OnPush(). Referenced by CHandshake::OnPush(). |
|
Definition at line 264 of file ChatCore.cpp. References GetCount(), GetIterator(), GetNext(), m_bThread, m_pSection, and m_pWakeup. Referenced by ThreadStart(). |
|
Definition at line 197 of file ChatCore.cpp. References CConnection::m_hSocket, m_pSection, m_pSessions, m_pWakeup, and NULL. Referenced by CChatSession::~CChatSession(). |
|
Definition at line 219 of file ChatCore.cpp. References GetCount(), m_bThread, m_hThread, NULL, and ThreadStart(). Referenced by Add(). |
|
Definition at line 229 of file ChatCore.cpp. References m_hThread, m_pWakeup, CShareazaApp::Message(), MSG_DEBUG, NULL, and theApp. Referenced by Close(), and CMainWnd::OnClose(). |
|
Definition at line 257 of file ChatCore.cpp. References OnRun(). Referenced by StartThread(). |
|
Definition at line 67 of file ChatCore.h. Referenced by FindSession(), and OnAccept(). |
|
Definition at line 44 of file ChatCore.h. Referenced by CChatCore(), OnRun(), and StartThread(). |
|
Definition at line 43 of file ChatCore.h. Referenced by CChatCore(), StartThread(), and StopThread(). |
|
Definition at line 40 of file ChatCore.h. Referenced by Add(), CChatSession::Close(), CChatSession::Connect(), OnAccept(), CChatFrame::OnDestroy(), CChatSession::OnED2KMessage(), OnED2KMessage(), CMainWnd::OnOpenChat(), OnPush(), OnRun(), Remove(), CChatSession::SendPrivateMessage(), and CChatSession::Setup(). |
|
Definition at line 42 of file ChatCore.h. Referenced by Add(), Check(), GetCount(), GetIterator(), GetNext(), and Remove(). |
|
Definition at line 45 of file ChatCore.h. Referenced by Add(), OnRun(), Remove(), and StopThread(). |