Expand description
FutuOpenD 通用服务端框架
抽象网关对客户端暴露的入方向能力:TCP / WebSocket / Telnet 监听、 单连接状态机、请求路由、推送分发、限频保护、订阅额度。
主要模块:
listener— TCPApiServer入口 +listener::ServerConfig配置ws_listener— WebSocket 服务端ws_listener::WsServertelnet— 管理后台telnet::TelnetServer(查状态 / 止流量)conn— 单连接conn::ClientConn+conn::IncomingRequestrouter—router::RequestRouter按 proto_id 派发到router::RequestHandlerpush—push::PushDispatcher把服务端主动推送广播到订阅的连接subscription—subscription::SubscriptionManager管 sub_type × symbol 额度protect—protect::ProtectionManager限频保护 per proto_idmetrics— 运行时 QPS / 延迟 / push 统计
Modules§
- body_
aware_ acc_ id - v1.4.104: 此模块已搬到 [
futu_auth_pipeline::body_aware] + [futu_auth_pipeline::response_filter] (跨 4 surface 共享). - conn
- listener
- metrics
- protect
- push
- router
- subscription
- telnet
- ws_
listener