Represents the Method of a Turn Message as defined in RFC 5766 Section 13 More...
Inherits NobleConnect.Stun.MessageMethod.
Public Member Functions | |
MessageMethod (ushort value) | |
Construct a MessageMethod instance with the specified value More... | |
override string | ToString () |
Return a human-readable description of the MessageMethod value More... | |
Static Public Member Functions | |
new static bool | IsValidMethod (ushort value) |
Static Public Attributes | |
const ushort | ALLOCATE = 0x003 |
Value for relay allocation messages More... | |
const ushort | REFRESH = 0x004 |
Value for messages used to refresh an allocation More... | |
const ushort | SEND = 0x006 |
Value for messages used to send data from a client to a peer over a relay More... | |
const ushort | DATA = 0x007 |
Value for a messages that contain data from a peer that arrived from a relay More... | |
const ushort | CREATE_PERMISSION = 0x008 |
Value for messages used for installing permissions that allow communication between a client and a peer More... | |
const ushort | CHANNEL_BIND = 0x009 |
Value for creating a channel binding to send and receive data more efficiently More... | |
static readonly MessageMethod | Allocate = new MessageMethod(ALLOCATE) |
The Allocate MessageMethod is used for sending a message to request an relay allocation on the Turn server More... | |
static readonly MessageMethod | Refresh = new MessageMethod(REFRESH) |
The Refresh MessageMethod is used for sending a message to refresh an allocation on the Turn server More... | |
static readonly MessageMethod | Send = new MessageMethod(SEND) |
The Send MessageMethod is used for sending data that will be relayed to a peer More... | |
static readonly MessageMethod | Data = new MessageMethod(DATA) |
The Data MessageMethod is used for receiving data from a peer More... | |
static readonly MessageMethod | CreatePermission = new MessageMethod(CREATE_PERMISSION) |
The CreatePermission MessageMethod is used for installing permissions that allow communication between a client and a peer More... | |
static readonly MessageMethod | ChannelBind = new MessageMethod(CHANNEL_BIND) |
The CreatePermission MessageMethod is used for creating a channel binding to send and receive data more efficiently More... | |
Additional Inherited Members |
Represents the Method of a Turn Message as defined in RFC 5766 Section 13
I would have preferred this to be an enum, but it needs to be extendable for Turn and Ice. So instead it is this weird enum-like class that exposes static instances of itself for each different MessageMethod.
NobleConnect.Turn.MessageMethod.MessageMethod | ( | ushort | value | ) |
Construct a MessageMethod instance with the specified value
value |
|
static |
override string NobleConnect.Turn.MessageMethod.ToString | ( | ) |
Return a human-readable description of the MessageMethod value
|
static |
Value for relay allocation messages
|
static |
The Allocate MessageMethod is used for sending a message to request an relay allocation on the Turn server
|
static |
Value for creating a channel binding to send and receive data more efficiently
|
static |
The CreatePermission MessageMethod is used for creating a channel binding to send and receive data more efficiently
|
static |
Value for messages used for installing permissions that allow communication between a client and a peer
|
static |
The CreatePermission MessageMethod is used for installing permissions that allow communication between a client and a peer
|
static |
Value for a messages that contain data from a peer that arrived from a relay
|
static |
The Data MessageMethod is used for receiving data from a peer
|
static |
Value for messages used to refresh an allocation
|
static |
The Refresh MessageMethod is used for sending a message to refresh an allocation on the Turn server
|
static |
Value for messages used to send data from a client to a peer over a relay
|
static |
The Send MessageMethod is used for sending data that will be relayed to a peer