Class RequestedTransportAttribute
This attribute is used by the client to request a specific transport protocol for the allocated transport address.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch.Stun.Turn
Assembly: FM.LiveSwitch.dll
Syntax
public class RequestedTransportAttribute : Attribute
Constructors
RequestedTransportAttribute(Int32)
Initializes a new instance of the Requested
Declaration
public RequestedTransportAttribute(int protocol)
Parameters
Type | Name | Description |
---|---|---|
System. |
protocol |
Properties
Protocol
Gets or sets the transport protocol.
Declaration
public int Protocol { get; set; }
Property Value
Type | Description |
---|---|
System. |
TcpProtocol
Gets the TCP transport protocol.
Declaration
public static int TcpProtocol { get; }
Property Value
Type | Description |
---|---|
System. |
TypeValue
Gets the type value.
Declaration
public override int TypeValue { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
UdpProtocol
Gets the UDP transport protocol.
Declaration
public static int UdpProtocol { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
GetValueLength()
Gets the length of the attribute value.
Declaration
protected override int GetValueLength()
Returns
Type | Description |
---|---|
System. |
Overrides
ReadValueFrom(DataBuffer, Int32)
Initializes a new instance of the Requested
Declaration
public static RequestedTransportAttribute ReadValueFrom(DataBuffer buffer, int offset)
Parameters
Type | Name | Description |
---|---|---|
Data |
buffer | The buffer. |
System. |
offset | The offset. |
Returns
Type | Description |
---|---|
Requested |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
A string that represents this instance. |
Overrides
System.Object.ToString()
WriteValueTo(DataBuffer, Int32)
Writes the attribute value to a data buffer.
Declaration
protected override void WriteValueTo(DataBuffer buffer, int offset)
Parameters
Type | Name | Description |
---|---|---|
Data |
buffer | The buffer. |
System. |
offset | The offset. |