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
ファイルを表示 Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
Address System.Net.IPAddress
Port int

Public Methods

Method 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 method

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

STUNAddressAttribute() public method

public STUNAddressAttribute ( byte attributeValue ) : NUnit.Framework
attributeValue byte
return NUnit.Framework

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_oe property

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

Port public_oe property

public int Port
return int