MCPcopy Create free account
hub / github.com/619dev/minghe / ServerState

Class ServerState

src/sip/server.rs:33–40  ·  view source on GitHub ↗

服务器共享状态

Source from the content-addressed store, hash-verified

31
32/// 服务器共享状态
33pub struct ServerState {
34 pub config: Arc<AppConfig>,
35 pub registrar: Arc<RegistrarService>,
36 pub router: Arc<Router>,
37 pub transaction_mgr: Arc<TransactionManager>,
38 /// 连接映射:peer_addr -> ConnectionState
39 connections: RwLock<HashMap<SocketAddr, ConnectionState>>,
40}
41
42impl ServerState {
43 /// 根据分机号查找写入通道

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected