Class StunAttributeTypes
Inherited Members
Namespace: Uniform.Stun.Protocol
Assembly: Uniform.Stun.Protocol.dll
Syntax
public static class StunAttributeTypes
Remarks
Types below 0x8000 are comprehension-required: a receiver that does not know one must refuse the message, see IsComprehensionRequired(ushort).
Fields
| Edit this page View SourceAdditionalAddressFamily
TURN request for a second relayed address of the other family.
Declaration
public const ushort AdditionalAddressFamily = 32768
Field Value
| Type | Description |
|---|---|
| ushort |
AddressErrorCode
TURN error of the additional address family.
Declaration
public const ushort AddressErrorCode = 32769
Field Value
| Type | Description |
|---|---|
| ushort |
AlternateServer
Another server to try.
Declaration
public const ushort AlternateServer = 32803
Field Value
| Type | Description |
|---|---|
| ushort |
ChannelNumber
TURN channel number.
Declaration
public const ushort ChannelNumber = 12
Field Value
| Type | Description |
|---|---|
| ushort |
Data
TURN data.
Declaration
public const ushort Data = 19
Field Value
| Type | Description |
|---|---|
| ushort |
DontFragment
TURN request to set the don't-fragment bit towards peers.
Declaration
public const ushort DontFragment = 26
Field Value
| Type | Description |
|---|---|
| ushort |
ErrorCode
Error code and reason.
Declaration
public const ushort ErrorCode = 9
Field Value
| Type | Description |
|---|---|
| ushort |
EvenPort
TURN request for an even relay port.
Declaration
public const ushort EvenPort = 24
Field Value
| Type | Description |
|---|---|
| ushort |
Fingerprint
CRC-32 over the message.
Declaration
public const ushort Fingerprint = 32808
Field Value
| Type | Description |
|---|---|
| ushort |
IceControlled
ICE: the sender is controlled, with its tie breaker.
Declaration
public const ushort IceControlled = 32809
Field Value
| Type | Description |
|---|---|
| ushort |
IceControlling
ICE: the sender is controlling, with its tie breaker.
Declaration
public const ushort IceControlling = 32810
Field Value
| Type | Description |
|---|---|
| ushort |
Lifetime
TURN allocation lifetime in seconds.
Declaration
public const ushort Lifetime = 13
Field Value
| Type | Description |
|---|---|
| ushort |
MappedAddress
Address the server saw, in the clear; older servers.
Declaration
public const ushort MappedAddress = 1
Field Value
| Type | Description |
|---|---|
| ushort |
MessageIntegrity
HMAC-SHA1 over the message.
Declaration
public const ushort MessageIntegrity = 8
Field Value
| Type | Description |
|---|---|
| ushort |
MessageIntegritySha256
HMAC-SHA256 over the message.
Declaration
public const ushort MessageIntegritySha256 = 28
Field Value
| Type | Description |
|---|---|
| ushort |
Nonce
Nonce of long-term credentials.
Declaration
public const ushort Nonce = 21
Field Value
| Type | Description |
|---|---|
| ushort |
PasswordAlgorithm
The password algorithm the client chose.
Declaration
public const ushort PasswordAlgorithm = 29
Field Value
| Type | Description |
|---|---|
| ushort |
PasswordAlgorithms
Password algorithms the server offers.
Declaration
public const ushort PasswordAlgorithms = 32770
Field Value
| Type | Description |
|---|---|
| ushort |
Priority
ICE candidate priority.
Declaration
public const ushort Priority = 36
Field Value
| Type | Description |
|---|---|
| ushort |
Realm
Realm of long-term credentials.
Declaration
public const ushort Realm = 20
Field Value
| Type | Description |
|---|---|
| ushort |
RequestedAddressFamily
TURN address family of the relayed address the client wants.
Declaration
public const ushort RequestedAddressFamily = 23
Field Value
| Type | Description |
|---|---|
| ushort |
RequestedTransport
TURN requested transport, 17 for UDP.
Declaration
public const ushort RequestedTransport = 25
Field Value
| Type | Description |
|---|---|
| ushort |
ReservationToken
TURN token of a port reserved by an earlier allocation.
Declaration
public const ushort ReservationToken = 34
Field Value
| Type | Description |
|---|---|
| ushort |
Software
Software name.
Declaration
public const ushort Software = 32802
Field Value
| Type | Description |
|---|---|
| ushort |
UnknownAttributes
Comprehension-required attribute types the receiver did not know, in a 420 response.
Declaration
public const ushort UnknownAttributes = 10
Field Value
| Type | Description |
|---|---|
| ushort |
UseCandidate
ICE nomination by the controlling side.
Declaration
public const ushort UseCandidate = 37
Field Value
| Type | Description |
|---|---|
| ushort |
Userhash
Hash of the user name, instead of Username.
Declaration
public const ushort Userhash = 30
Field Value
| Type | Description |
|---|---|
| ushort |
Username
User name, e.g. ICE's remote:local fragments.
Declaration
public const ushort Username = 6
Field Value
| Type | Description |
|---|---|
| ushort |
XorMappedAddress
Address the server saw, XOR'ed with the magic cookie and transaction.
Declaration
public const ushort XorMappedAddress = 32
Field Value
| Type | Description |
|---|---|
| ushort |
XorPeerAddress
TURN peer address, XOR'ed.
Declaration
public const ushort XorPeerAddress = 18
Field Value
| Type | Description |
|---|---|
| ushort |
XorRelayedAddress
TURN relayed address, XOR'ed.
Declaration
public const ushort XorRelayedAddress = 22
Field Value
| Type | Description |
|---|---|
| ushort |
Methods
| Edit this page View SourceIsComprehensionRequired(ushort)
Return whether an attribute type is comprehension-required: below 0x8000.
Declaration
public static bool IsComprehensionRequired(ushort type)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | type |
Returns
| Type | Description |
|---|---|
| bool |