1.
SessionManager管理多个Session:




每个Session在SessionManager里通过sid来区分:

通过SessionManager::CreateSession(content_type)创建一个Session, 每个Session对应一个content_type:



content_type目前传入的为"urn:xmpp:jingle:apps:rtp:1", 其实就是<content>下<description>元素的"xmlns"属性值.
2.
一个Session管理多个Transport:




每个Transport在Session里通过content_name来区分:

通过Session::GetOrCreateTransportProxy(content_name)来创建一个Transport. content_name就是<content>元素的name属性值, 如"audio", "video"等. 比如, 在视频聊天中:






3.
一个Transport管理多个Transportchannel:




每个Transportchannel通过channel_name来区分:

通过 Transport::CreateChannel(name)创建一个Transport, channel_name没有对应的XMPP stanza, 其值有"rtp", "rtcp"等.
4.
一个TransportChannel(主要是P2PTransportChannel)管理多个Port:



Port分为StunPort, TCPPort, UDPPort等, 与<transport>元素的xmlns属性值(如"urn:xmpp:jingle:transports:ice-udp:1")以及子元素<candidate>的protocol属性值(如"udp")有关.
5.
一个Port管理多个Connection:




6.
一个Connection包括一个local_candidate和一个remote_candidate:
class Connection



