服务器端,监听2001(CS_Req),发送4009/4001,给车端
- CUserSocket::InitFnDirector 定义了接收2001(CS_Req)消息时,触发 CUserSocket::OnReqVideo
- CUserSocket::OnReqVideo 调用了 RemoNet::VideoDesc CUserManager::ConnectPeerVideo
- RemoNet::VideoDesc CUserManager::ConnectPeerVideo 调用了 CUserSocket::ReqVideo
- CUserSocket::ReqVideo 发送了4009(SC_NotifyReq)消息给车端
- CUserSocket::OnReqVideo 发送了4001(SC_Req)消息给车端 (注:4001消息是车端舱端都没有用到的)
服务器端,监听2002(CS_Rep)消息,返回4010(SC_NotifyRep)消息流程
- SocketClient::InitFnDirector 定义了接收2002(CS_Rep)消息时,触发 CUserSocket::OnRepVideo
- CUserSocket::OnRepVideo 调用了 CUserManager::GetInstance().ReplyPeerVideo
- CUserManager::ReplyPeerVideo 调用了 CUserSocket::RepVideo
- CUserSocket::RepVideo 发送了4010(SC_NotifyRep)消息
服务器端,监听舱端2004(CS_Offer)消息,发送4012(SC_NotifyOffer)给车端
- CUserSocket::InitFnDirector 定义了接收2004(CS_Offer)消息时,触发 CUserSocket::OnOffer
- CUserSocket::OnOffer 会调用 CUserManager::GetInstance().NotifyOffer
- CUserManager::GetInstance().NotifyOffer 会调用 CUserSocket::NotifyOffer
- CUserSocket::NotifyOffer 发送4012(SC_NotifyOffer)消息,给车端
服务器端,监听2005(CS_Answer)消息,发送4011(SC_NotifyAnswer),给舱端
- CUserSocket::InitFnDirector 定义了接收2005(CS_Answer)消息时,触发 CUserSocket::OnAnswer
- CUserSocket::OnAnswer 调用了 CUserManager::GetInstance().NotifyAnswer
- CUserManager::GetInstance().NotifyAnswer 调用了 CUserSocket::NotifyAnswer
- CUserSocket::NotifyAnswer 发送4011(SC_NotifyAnswer)消息给舱端
服务器端,监听车端2009(CS_Add)消息
- CUserSocket::InitFnDirector 定义了监听2009(CS_Add)消息,触发 CUserSocket::OnAdd
- CUserSocket::OnAdd 发送了4016(SC_NotifyAdd)给全部舱端
- CUserSocket::OnAdd 发送了4007(SC_Add)返回给车端执行结果
服务器端,监听舱端2000(CS_Sign)消息
- CUserSocket::InitFnDirector 定义了监听2000(CS_Sign)消息,触发 CUserSocket::OnSigin
- CUserSocket::OnSigin 发送了4000(SC_Sign)返回给舱端执行结果