UC股市2011/11/23
2011-11-23 20:23
113 查看
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.
* 向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大数据解读广州车展 宝骏530成最受关注新车车型
- R语言隐马尔科夫模型HMM识别股市变化分析报告
- 【iCore4 双核心板_uC/OS-II】例程四:软件定时器
- 【iCore4 双核心板_uC/OS-II】例程九:消息队列
- Microsoft Visual Studio 2015中ucrtbased.dll丢失
- [股市]人性讨厌风险(收藏)
- [股市]就这样破了,记住这一历史时刻
- 新华社内参:股市惨跌之谜
- UC_online在线抽奖_新浪UC(Tab页功能)
- 比尔盖茨增仓中国股市 4只A股纳入投资范围
- 股市像脱缰的“野牛”,谁是最好的“牛崽”?
- UC/OS和uClinux的比较
- 外资做庄中国股市揭秘 慢牛迎热钱
- 房市好比股市 房价涨跌由市场来定
- 中国股市何时出现“拐点”?
- 说说现在的股市对中国经济的伤害(券商工作有感)
- 天气暴热,心情不爽,股市反弹... ...
- 股市短线操作宝典十招精解
- 搞了3个多月,还是没有赚到钱,股市真难。。。。
- uC/OS-II 初级程序员指南