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
Afficher le fichier Open project: sipsorcery/sipsorcery Class Usage Examples

Méthodes publiques

Свойство Type Description
Address System.Net.IPAddress
Family int
Port int

Méthodes publiques

Méthode 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 méthode

public STUNv2XORAddressAttribute ( STUNv2AttributeTypesEnum attributeType, byte attributeValue ) : System
attributeType STUNv2AttributeTypesEnum
attributeValue byte
Résultat System

STUNv2XORAddressAttribute() public méthode

public STUNv2XORAddressAttribute ( STUNv2AttributeTypesEnum attributeType, int port, IPAddress address ) : System
attributeType STUNv2AttributeTypesEnum
port int
address System.Net.IPAddress
Résultat System

ToByteBuffer() public méthode

public ToByteBuffer ( byte buffer, int startIndex ) : int
buffer byte
startIndex int
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

Address public_oe property

public IPAddress,System.Net Address
Résultat System.Net.IPAddress

Family public_oe property

public int Family
Résultat int

Port public_oe property

public int Port
Résultat int