Class XorRelayedAddressAttribute
The XOR-RELAYED-ADDRESS is present in Allocate responses. It specifies the address and port that the server allocated to the client.
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 XorRelayedAddressAttribute : Attribute
Constructors
XorRelayedAddressAttribute(String, Int32, DataBuffer)
Initializes a new instance of the XorRelayedAddressAttribute class.
Declaration
public XorRelayedAddressAttribute(string ipAddress, int port, DataBuffer transactionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | ipAddress | The IP address. |
System.Int32 | port | The port. |
DataBuffer | transactionId | The transaction ID. |
Properties
IPAddress
Gets or sets the IP address.
Declaration
public string IPAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Port
Gets or sets the port.
Declaration
public int Port { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TransactionId
Gets or sets the transaction ID.
Declaration
public DataBuffer TransactionId { get; }
Property Value
Type | Description |
---|---|
DataBuffer |
TypeValue
Gets the type value.
Declaration
public override int TypeValue { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
Methods
GetValueLength()
Gets the length of the value.
Declaration
protected override int GetValueLength()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
ReadValueFrom(DataBuffer, Int32, DataBuffer)
Initializes a new instance of the XorRelayedAddressAttribute class.
Declaration
public static XorRelayedAddressAttribute ReadValueFrom(DataBuffer buffer, int offset, DataBuffer transactionId)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
System.Int32 | offset | The offset. |
DataBuffer | transactionId | The transaction ID. |
Returns
Type | Description |
---|---|
XorRelayedAddressAttribute |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents this instance. |
Overrides
System.Object.ToString()
WriteValueTo(DataBuffer, Int32)
Writes the value to.
Declaration
protected override void WriteValueTo(DataBuffer buffer, int offset)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
System.Int32 | offset | The offset. |