C# Class SIPSorcery.Net.STUNv2XORAddressAttribute

This attribue is the same as the mapped address attribute except the address details are XOR'ed with the STUN magic cookie. THe reason for this is to stop NAT application layer gateways from doing string replacements of private IP adresses and ports.
Inheritance: STUNv2Attribute
Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
Address System.Net.IPAddress
Family int
Port int

Public Methods

Method Description
STUNv2XORAddressAttribute ( STUNv2AttributeTypesEnum attributeType, byte attributeValue ) : System
STUNv2XORAddressAttribute ( STUNv2AttributeTypesEnum attributeType, int port, IPAddress address ) : System
ToByteBuffer ( byte buffer, int startIndex ) : int
ToString ( ) : string

Method Details

STUNv2XORAddressAttribute() public method

public STUNv2XORAddressAttribute ( STUNv2AttributeTypesEnum attributeType, byte attributeValue ) : System
attributeType STUNv2AttributeTypesEnum
attributeValue byte
return System

STUNv2XORAddressAttribute() public method

public STUNv2XORAddressAttribute ( STUNv2AttributeTypesEnum attributeType, int port, IPAddress address ) : System
attributeType STUNv2AttributeTypesEnum
port int
address System.Net.IPAddress
return System

ToByteBuffer() public method

public ToByteBuffer ( byte buffer, int startIndex ) : int
buffer byte
startIndex int
return int

ToString() public method

public ToString ( ) : string
return string

Property Details

Address public property

public IPAddress,System.Net Address
return System.Net.IPAddress

Family public property

public int Family
return int

Port public property

public int Port
return int