基础结构 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