/// <summary> /// 创建一个被动方使用的ALE管理器。 /// </summary> public RsspNodeServer(RsspServerConfig config) : base(config) { _rsspConfig = config; _nodeListener = new NodeListener(config.ListenEndPoints, this); }
public override IRsspNode Create() { var listeners = _settings.GetListeningEndPoints(); var deviceType = (byte)_settings.DeviceType; var appType = _settings.ApplicationType; var acceptableClients = _settings.GetAcceptableClients(); var cfg = new RsspServerConfig(_settings.LocalID, deviceType, appType, listeners, acceptableClients); cfg.AuthenticationKeys = _settings.GetAuthenticationKeys(); cfg.EcInterval = _settings.EcInterval; cfg.SeqNoThreshold = _settings.SeqNoThreshold; return(RsspFactory.CreateServerNode(cfg)); }
/// <summary> /// 创建一个RSSP-II服务器。 /// </summary> /// <param name="config">服务器配置信息。</param> /// <returns>一个IRsspNode接口。</returns> public static IRsspNode CreateServerNode(RsspServerConfig config) { return(new RsspNodeServer(config)); }