Ejemplo n.º 1
0
        public SctpCauseOnlyError(SctpErrorCauseCode causeCode)
        {
            if (!SupportedErrorCauses.Contains(causeCode))
            {
                throw new ApplicationException($"SCTP error struct should not be used for {causeCode}, use the specific error type.");
            }

            CauseCode = causeCode;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new ERROR chunk.
 /// </summary>
 /// <param name="errorCauseCode">The initial error cause code to set on this chunk.</param>
 public SctpErrorChunk(SctpErrorCauseCode errorCauseCode) :
     this(new SctpCauseOnlyError(errorCauseCode))
 {
 }