/// <summary> /// 创建一个适用于被动方的MASL Connection。 /// </summary> protected MaslConnection(RsspEndPoint rsspEP, IMaslConnectionObserver observer, IAleTunnelEventNotifier tunnelEventNotifier) : this(observer, rsspEP) { _aleConnection = new AleConnectionServer(rsspEP, _auMsgBuilder, this, tunnelEventNotifier); }
/// <summary> /// 创建一个适用于主动方的MASL Connection。 /// </summary> protected MaslConnection(RsspEndPoint rsspEP, IEnumerable <RsspTcpLinkConfig> linkConfig, IMaslConnectionObserver observer, IAleTunnelEventNotifier tunnelEventNotifier) : this(observer, rsspEP) { _aleConnection = new AleConnectionClient(rsspEP, linkConfig, _auMsgBuilder, this, tunnelEventNotifier); }
private MaslConnection(IMaslConnectionObserver observer, RsspEndPoint rsspEP) { _observer = observer; _rsspEndPoint = rsspEP; _currentState = this.GetInitialState(); _macCalculator = new TrippleDesMacCalculator(rsspEP.AuthenticationKeys); _auMsgBuilder = new AuMessageBuilder(rsspEP, _macCalculator); _handshakeTimeoutMgr = new HandshakeTimeoutManager(MaslConnection.HandshakeTimeout, this); }
/// <summary> /// 创建一个适用于主动方的MASL Connection。 /// </summary> public MaslConnectionClient(RsspEndPoint rsspEP, IEnumerable <RsspTcpLinkConfig> linkConfig, IMaslConnectionObserver observer, IAleTunnelEventNotifier tunnelEventNotifier) : base(rsspEP, linkConfig, observer, tunnelEventNotifier) { }
/// <summary> /// 创建一个适用于被动方的MASL Connection。 /// </summary> public MaslConnectionServer(RsspEndPoint rsspEP, IMaslConnectionObserver observer, IAleTunnelEventNotifier tunnelEventNotifier) : base(rsspEP, observer, tunnelEventNotifier) { }