C# Class SIPSorcery.Net.STUNChangeRequestAttribute

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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 A B 0| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The meaning of the flags is: A: This is the "change IP" flag. If true, it requests the server to send the Binding Response with a different IP address than the one the Binding Request was received on. B: This is the "change port" flag. If true, it requests the server to send the Binding Response with a different port than the one the Binding Request was received on.
Inheritance: STUNAttribute
Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
ChangeAddress bool
ChangePort bool

Public Methods

Method Description
STUNChangeRequestAttribute ( byte attributeValue ) : NUnit.Framework
ToString ( ) : string

Method Details

STUNChangeRequestAttribute() public method

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

ToString() public method

public ToString ( ) : string
return string

Property Details

ChangeAddress public property

public bool ChangeAddress
return bool

ChangePort public property

public bool ChangePort
return bool