Click or drag to resize

ErrorCodeAttribute Class

The ERROR-CODE attribute is used in error response messages. It contains a numeric error code value in the range of 300 to 699 plus a textual reason phrase encoded in UTF-8 [RFC3629], and is consistent in its code assignments and semantics with SIP [RFC3261] and HTTP [RFC2616]. The reason phrase is meant for user consumption, and can be anything appropriate for the error code. Recommended reason phrases for the defined error codes are included in the IANA registry for error codes. The reason phrase MUST be a UTF-8 [RFC3629] encoded sequence of less than 128 characters (which can be as long as 763 bytes).
Inheritance Hierarchy

Namespace:  FM.IceLink.Stun
Assembly:  FM.IceLink (in FM.IceLink.dll) Version: 3.2.2.607 (3.2.2.607)

The ErrorCodeAttribute type exposes the following members.

Constructors
  NameDescription
Public methodErrorCodeAttribute(Int32)
Initializes a new instance of the ErrorCodeAttribute class.
Public methodErrorCodeAttribute(Int32, String)
Initializes a new instance of the ErrorCodeAttribute class.
Top
Properties
  NameDescription
Public propertyCode
Gets or sets the error code.
Public propertyReason
Gets or sets the error reason.
Public propertyTypeValue
Gets the type value.
(Overrides AttributeTypeValue.)
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLength
Gets the length of the attribute, including header and padding.
(Inherited from Attribute.)
Public methodGetPaddingLength
Gets the length of the padding.
(Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Protected methodGetValueLength
Gets the length of the attribute value.
(Overrides AttributeGetValueLength.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberReadValueFrom
Initializes a new instance of the ErrorCodeAttribute class.
Public methodToString
Returns a string that represents this instance.
(Overrides ObjectToString.)
Protected methodWriteIPAddress
Writes an IP address.
(Inherited from Attribute.)
Protected methodWritePort
Writes a port.
(Inherited from Attribute.)
Public methodWriteTo(DataBuffer, Int32)
Writes the attribute to a data buffer.
(Inherited from Attribute.)
Public methodWriteTo(DataBuffer, Int32, Int32)
Writes the attribute to a data buffer.
(Inherited from Attribute.)
Protected methodWriteValueTo
Writes the attribute value to a data buffer.
(Overrides AttributeWriteValueTo(DataBuffer, Int32).)
Protected methodWriteXorIPAddress
Writes an XOR'd IP address.
(Inherited from Attribute.)
Protected methodWriteXorPort
Writes an XOR'd port.
(Inherited from Attribute.)
Top
See Also