LCDS provides a RTMP channel which is a duplex socket connection between the SWF file and the server. It means the server is immediately notified when the underlying SWF file is disconnected.
In a RTMP channel, the FlexSession on the LCDS server is scoped to the underlying RTMP connection from the single SWF file. while in an HTTP-based channel, such as AMFChannel or HTTPChannel, the FlexSession on the LCDS server is scoped to the browser and wraps an HTTP session. If the HTTP-based channel connects to a servlet-based endpoint, the underlying HTTP session is a J2EE HttpSession object. If the channel connects to an NIO-based endpoint, the underlying HTTP session supports the FlexSession API, but it is disjointed from the application server HttpSession object.
In a RTMP channel, the FlexSession on the LCDS server is scoped to the underlying RTMP connection from the single SWF file. while in an HTTP-based channel, such as AMFChannel or HTTPChannel, the FlexSession on the LCDS server is scoped to the browser and wraps an HTTP session. If the HTTP-based channel connects to a servlet-based endpoint, the underlying HTTP session is a J2EE HttpSession object. If the channel connects to an NIO-based endpoint, the underlying HTTP session supports the FlexSession API, but it is disjointed from the application server HttpSession object.
RTMP与HTTP通道对比
本文探讨了LCDS提供的RTMP通道与基于HTTP的通道之间的区别。RTMP通道为SWF文件与服务器间建立了双向套接字连接,而HTTP通道如AMFChannel或HTTPChannel则在浏览器级别建立连接,并封装了HTTP会话。文章还讨论了这两种通道在连接到不同类型的端点时如何处理HTTP会话。
1008

被折叠的 条评论
为什么被折叠?



