Enum Attribute.AttributeType
Enum values that correspond to Attribute subclasses.
Namespace: Libplanet.Stun.Attributes
Assembly: Libplanet.Stun.dll
Syntax
public enum AttributeType : ushort
Remarks
See also IANA STUN Attributes.
Fields
Name | Description |
---|---|
ConnectionId | An Attribute which uniquely identifies a peer data connection. |
ErrorCode | An Attribute which contains a numeric error code value in range of 300 to 699 and a textual reason phrase encoded in UTF-8. |
Fingerprint | An Attribute may be present in all STUN messages. It has the value computed as the CRC-32 of the STUN message. Also it aids in distinguishing STUN packets from packets of other protocols. |
Lifetime | An Attribute which represents the duration for which the server will maintain an allocation in the absence of a refresh. |
MessageIntegrity | An Attribute which contains an HMAC-SHA1 of the STUN message. |
Nonce | An Attribute which contains a sequence of qdtext of quoted-pair and protects replay attacks. |
Realm | An Attribute which contains an unquoted realm-value, UTF-8 encoded sequence of less than 128 characters. If this attribute presences in a request, there was used long-term credentials for authentication. And it is to wish the client to use long-term credentials for authentication if there is this attribute in certain error-response. |
RequestedTransport | An Attribute used by the client to request a specific transport protocol for the allocated transport address. |
Software | An Attribute which contains a textual description of the software being used by the agent sending the message. It should include manufacturer and version number. Also it has no impact on operation of the protocol, and serves only as a tool for diagnostic and debugging purposes. |
Username | An Attribute used for message integrity, identifies a combination of username and password. |
XorMappedAddress | An Attribute which indicates a reflexive transport address obfuscated through the XOR function. |
XorPeerAddress | An Attribute which specifies the address and port of the peer as seen from the TURN server, obfuscated through the XOR function. |
XorRelayedAddress | An Attribute in allocate-responses, which specifies the address and port than the server allocated to the client, obfuscated through the XOR function. |