UC股市2011/11/23
来源:互联网 发布:saber2016仿真软件 编辑:程序博客网 时间:2024/05/17 05:11
1. Chat Message过程
* 向Server发信息
CChatMainDlg::SendData()
CChatSession::SendData()
CConfSession(ISessionClient)::SendData()
CConference::SenddData()
CConfPort::SendData() // reliable or assitant connection ? 2011/12/04
CConfConnection::SendData() // package 的优先级处理。2011/12/04
Server
* 从Server接收信息
Server
CConfConnection::OnReceiveData()
CConference::OnReceiveData() // Why not CConfPort this time ?
// 是否因为CConfPort提供了reliable/assistant connection选择,而receive的时候不需要? 2012/04/06
CConfSession(ISessionClient)::OnReceiveData()
CChatSession::OnReceiveData()
CChatMainDlg::OnReceiveData()
CChatMainDlg::Display Chat Message
CConfManage -> CConfSession-> CConference -> XXXConnection -> Server ?
2. step-by-step running
Loaded 'C:\WINDOWS\system32\wshtcpip.dll', no matching symbolic information found.
$20111123 08:59:31.031 6012/5168 ERROR: CRtAcceptorTcp::StartListen, bind() failed! addr=172.16.14.6 port=1221 err=10049:在其上下文中,该请求的地址无效。
this=0x16baae0
A: The IP changed to 172.16.14.3
Q: Why no issue for Controller ?
Q:如何给chat module的DllMain()设置break point?
A:这是不可能的。只有当dll加载后才能调break point,而如果dll已经被加载,则意味着DllMain()已经执行过了。
3. rtchat.dll加载过程:
STACK TRACE:
ComponentContainer::InsertObject(HWND__ * 0x00060aca, const char * 0x020a8431, IL_SESS_TYPE IL_SESSION_CHAT) line 29
CManageBase::CreateComponentBase(ILInterfaceID IL_IID_COMPONENT_CHAT, IL_SESS_TYPE IL_SESSION_CHAT, HWND__ * 0x00060aca, const CSessionKey & {...}, ISessionClient * 0x020b03a8, CInfoRosterInfo & {...}, long 0, const CInfoSID & {...}, const CInfoSID & {...}) line 165 + 56 bytes
CChatManage::CreateComponent(HWND__ * 0x00060aca, const CSessionKey & {...}, ISessionClient * 0x020b03a8, CInfoRosterInfo & {...}, long 0, const CInfoSID & {...}, const CInfoSID & {...}) line 47 + 40 bytes
CConfManage::CreateComponent(const CSessionKey & {...}, const CRtString & {0x020b10f9 ""}, ISessionClient * 0x020b03a8, const CInfoSID & {...}) line 2694 + 69 bytes
CConfManage::OnSessionCreateConfirm(int 0, const CSessionKey & {...}, const CRtString & {0x020b10f9 ""}, ISessionClient * 0x020b03a8) line 874 + 30 bytes
CConference::HandleSessionCreateIndicate(CInfoSvrSessionCreateIndicatePdu * 0x020c1d10) line 1800 + 54 bytes
CConference::OnReceiveData(CRtMessageBlock & {...}) line 1404
CConfConnection::OnReceiveData(CRtMessageBlock & {...}, IConnection * 0x020add24) line 170
CRtIMConnection::OnReceive(CRtMessageBlock & {...}, IRtTransport * 0x020ad2b0, CRtTransportParameter * 0x00000000) line 890 + 50 bytes
CRtEventOnReceive::OnEventFire() line 375 + 50 bytes
CRtEventQueueBase::ProcessOneEvent(IRtEvent * 0x020b0780) line 229 + 12 bytes
CRtEventQueueBase::ProcessEvents(const std::list<IRtEvent *,std::allocator<IRtEvent *> > & {...}) line 217
CRtReactorBase::ProcessHandleEvent(void * 0xffffffff, long 256, int 0, int 1, int 0) line 324 + 18 bytes
CRtReactorWin32Message::Win32SocketWndProc(HWND__ * 0x001007da, unsigned int 1058, unsigned int 4294967295, long 256) line 115
^ 在这一步,肯定是因为network thread向UI Thread发送了Event,并Notify Handler 2011/12/04
USER32! 77d18734()
USER32! 77d18816()
USER32! 77d189cd()
USER32! 77d196c7()
WTL::CMessageLoop::Run() line 468 + 15 bytes
Run(char * 0x00151f28, int 1) line 207 + 11 bytes
LaunchConf(HINSTANCE__ * 0x00400000, char * 0x00151f28, int 1) line 318 + 13 bytes
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00151f28, int 1) line 85 + 20 bytes
WinMainCRTStartup() line 330 + 54 bytes
KERNEL32! 7c817077()
ComponentContainer::InsertObject(..)
{
....
m_hModule = LoadLibrary(lpszPath);
m_pfnNewInstance = (ILNewInstanceProc)GetProcAddress(m_hModule, "ILNewInstance");
m_pfnDeleteInstance = (ILDeleteInstanceProc)GetProcAddress(m_hModule, "ILDeleteInstance");
m_pfnGetComponentBase = (ILGetComponentBaseProc)GetProcAddress(m_hModule, "ILGetComponentBase");
......
m_hComponent = m_pfnNewInstance(hWndParent, sessType);
return TRUE;
}
注:在SessionCreateRequest的响应中,创建Chat Component,并将Session与其绑定?
4. conference/session/component 创建过程
CMainFrame::OnCreate()->
CConfManage::CreateConference() -> CConfManage::JoinConference()
CConference::HandleJoinConfRspn()-> Enroll Conf Request ->
CConference::HandleEnrollConfResp() ->
CConfManage::OnConferenceJoinConfirm() ->
CConfManaage::CreateAllSessions() ->
CConference::CreateSession() ->
......
CConference::OnReceiveData() -> CConference::HandleSessionCreateIndicate() -> OnSessionCreateConfirm() ->
CConfManage::CreateComponent() ->
component dll loaded.
- UC股市2011/11/23
- UC故事2011/09/23
- UC故事 2011-04-11
- UC故事2011/10/11
- UC故事 2011/11/15
- UC故事 2011/11/16
- UC故事2011/11/17
- UC故事2011/11/18
- UC故事2011/11/19
- UC故事 2011/11/21
- UC故事2011/11/22
- UC故事 2011/11/24
- UC故事2011/11/25
- UC故事2011/11/26
- UC故事2011/11/28
- UC故事2011/11/29
- UC故事2011/11/30
- UC故事 2010-11-23
- 急需《改善Foxplus全屏幕编辑环境》和《WPS文件的加密原理和解密方法》两篇论文信息
- 两周看完乔布斯传,说说感受 .
- FRM-40735: ON-ERROR trigger raised unhandled exception ORA-03114
- HTML5研究之应用缓存(application cache)
- PostgreSQL代码整体结构(三)
- UC股市2011/11/23
- Windbg之"查看内存"命令
- 网络硬盘与传统资源共享的不同
- Android activity的生命周期
- “三国演义”何处去
- Linux内核驱动程序初始化顺序的调整
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- uva 10401 Injured Queen Problem
- JDBC ConnectionManager类,从连接池获取Connection,释放资源等功能