/// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="session">LspSession ID. </param>
 /// <param name="status">Status of response. </param>
 /// <param name="endPoint">endpoint of the intercept response</param>
 public LspInterceptionResponse(LspSession session, int status, ProtocolEndPoint endPoint)
     : base(LspMessageType.InterceptionResponse)
 {
     this.session = session;
     this.status = status;
     this.interceptedEndPoint = endPoint;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="session">LspSession ID. </param>
 /// <param name="status">Status of response. </param>
 /// <param name="endPoint">endpoint of the intercept response</param>
 public LspInterceptionResponse(LspSession session, int status, ProtocolEndPoint endPoint)
     : base(LspMessageType.InterceptionResponse)
 {
     this.session             = session;
     this.status              = status;
     this.interceptedEndPoint = endPoint;
 }
Exemplo n.º 3
0
 /// <summary>
 /// equals
 /// </summary>
 /// <param name="pep">ProtocolEndPoint object to compared</param>
 /// <returns>true if equal, else false</returns>
 public bool Equals(ProtocolEndPoint pep)
 {
     if (base.Equals(pep) &&
         IPAddress.Equals(this.endPoint.Address, pep.endPoint.Address) &&
         this.endPoint.Port == pep.endPoint.Port &&
         this.protocolType == pep.protocolType)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="protocolEndPointUnregistered">Protocol and IPEndPoint unregistered. </param>
 public LspUnregistrationRequest(ProtocolEndPoint protocolEndPointUnregistered)
     : base(LspMessageType.UnregistrationRequest)
 {
     this.protocolEndPoint = protocolEndPointUnregistered;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="protocolEndPointRegistered">Protocol and IPEndPoint registered. </param>
 public LspRegistrationRequest(ProtocolEndPoint protocolEndPointRegistered)
     : base(LspMessageType.RegistrationRequest)
 {
     this.protocolEndPoint = protocolEndPointRegistered;
 }
 /// <summary>
 /// equals
 /// </summary>
 /// <param name="pep">ProtocolEndPoint object to compared</param>
 /// <returns>true if equal, else false</returns>
 public bool Equals(ProtocolEndPoint pep)
 {
     if (base.Equals(pep)
         && IPAddress.Equals(this.endPoint.Address, pep.endPoint.Address)
         && this.endPoint.Port == pep.endPoint.Port
         && this.protocolType == pep.protocolType)
         return true;
     else
         return false;
 }