UC故事 05/13/2011 - 2:代码

 

阅读文档:《Server详细设计》及代码 ----- 此文档极其有用

 

1. IMcs::SendData?

Q:以下函数的功能到底是什么?

    virtual RtResult SendData(IInfoSvrPort* pSrcPort,
                              const CInfoSID& destInfoSID,
                              CRtMessageBlock& Data,
                              DATAFLAG DataFlag = DATA_FLAG_COMMAND,
                              DATA_Priority DataPriority = DATA_PRIORITY_HIGH) = 0;  //发送数据到Port

2.  GCC层数据转发流程?以下是神马东东?

<!-- [if gte mso 9]><![endif]--><!-- [if gte mso 9]><![endif]--><!-- [if gte mso 10]><![endif]-->

GCCConference Session )需要发送数据时 ,通过McsThreadProxySendData接口把要发送的数据、源InfoSId、目的InfoSID通知McsThreadProxy McsThreadProxy 在用户线程里执行FindObject操作,找到数据的目的地。然后post event到网络线程在目的地对象上执行SendData操作。

 

3. RTString

Q:to cover both win32 and other platforms ?

#if defined(RT_WIN32)
    template <class IterType>
    CRtString(IterType s1, IterType s2)
        : SuperType(s1, s2, SuperType::allocator_type())
    {
    }
#else
    CRtString(const char* s1, const char* s2)
        : SuperType(s1, s2 - s1)
    {
    }
#endif

 

4.IInfoSvrSession: What's the following ?

    virtual RtResult    UpdateResource(const CUpdateResource* pUdate) = 0;

 

5. Session

<!-- [if gte mso 9]><![endif]--><!-- [if gte mso 9]><![endif]--><!-- [if gte mso 10]><![endif]-->

Session需要处理的问题:

       Session的在各服务器的创建,Default Channel的创建。Resource的保存和处理

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值