C# Class SIPSorcery.Net.STUNAddressAttribute

MAPPED-ADDRESS, RESPONSE-ADDRESS, CHANGED-ADDRESS, SOURCE-ADDRESS attributes use this format. The Send Keep Alive STUN request also uses an attribute with this format to specify the socket to send the Keep Alive to. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |x x x x x x x x| Family | Port | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Inheritance: STUNAttribute
Afficher le fichier Open project: sipsorcery/sipsorcery Class Usage Examples

Méthodes publiques

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

Méthodes publiques

Méthode Description
STUNAddressAttribute ( STUNAttributeTypesEnum attributeType, int port, IPAddress address ) : NUnit.Framework
STUNAddressAttribute ( byte attributeValue ) : NUnit.Framework
ToByteBuffer ( byte buffer, int startIndex ) : int
ToString ( ) : string

Method Details

STUNAddressAttribute() public méthode

public STUNAddressAttribute ( STUNAttributeTypesEnum attributeType, int port, IPAddress address ) : NUnit.Framework
attributeType STUNAttributeTypesEnum
port int
address System.Net.IPAddress
Résultat NUnit.Framework

STUNAddressAttribute() public méthode

public STUNAddressAttribute ( byte attributeValue ) : NUnit.Framework
attributeValue byte
Résultat NUnit.Framework

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

Port public_oe property

public int Port
Résultat int