Bootstrap

supersocket的app层源码解析

基础结构

1
0..N
1
0..N
«Interface»
ISessionBase
«Interface»
IAppSession
«Abstract»
AppSession
«Interface»
IAppServer
«Abstract»
AppServerBase
«Abstract»
AppServer
«Interface»
IReceiveFilterFactory
«Interfac»
IReceiveFilter
DefaultReceiveFilterFactory
PolicyReceiveFilterFactory
CountSpliterReceiveFilterFactory
WebSocketProtocol
TerminatorReceiveFilterFactory
CountSpliterReceiveFilter
«Abstract»
FixedSizeReceiveFilter
WebSocketDataFrameReceiveFilter
SwitchReceiveFilter
«Abstract»
BeginEndMarkReceiveFilter
«Abstract»
FixedHeaderReceiveFilter
PolicyReceiveFilter
«Abstract»
TerminatorReceiveFilter
«Abstract»
HttpReceiveFilterBase
HttpReceiveFilter
«interface»
IConnectionFilter
«intrface»
ICommandLoader
«Abstract»
CommandLoaderBase
ReflectCommandLoader
«Interface»
ICommand
«Abstract»
CommandBase
«Abstract»
StringCommandBase
ISocketServerFactory

ISessionBase:app层session接口类
IAppServer:app层应用接口类
IReceiveFilterFactory :接收过滤器工厂接口类
IReceiveFilter:接收过滤器接口类
IConnectionFilter:连接过滤器接口类
ICommandLoader:命令加载器接口类
ICommand:命令接口类

appsession请求处理流程

client AppSession IReceiveFilter IAppServer ICommand ProcessRequest FilterRequest Filter ExecuteCommand ExecuteCommand m_requestHandler alt [m_requestHandler = null] client AppSession IReceiveFilter IAppServer ICommand

悦读

道可道,非常道;名可名,非常名。 无名,天地之始,有名,万物之母。 故常无欲,以观其妙,常有欲,以观其徼。 此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。

;