Class MapAttribute
AB: Legacy attribute. To be removed when Firefox and Chrome stop using it. The sctpmap attribute maps from a port number (as used in an "m=" line) to an encoding name denoting the payload format to be used on top of the SCTP association or the actual protocol running on top of it. Last appears in https://tools.ietf.org/html/draft-ietf-mmusic-sctp-sdp-06#page-6 Has been replaced in subsequent drafts but is used in Firefox and Chrome for now.
Inherited Members
Namespace: FM.LiveSwitch.Sdp.Sctp
Assembly: FM.LiveSwitch.dll
Syntax
public class MapAttribute : Attribute
Constructors
MapAttribute(Int32, String, Int32)
Initializes a new instance of the PortAttribute class.
Declaration
public MapAttribute(int port, string protocol, int streams)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | The SCTP port. |
System.String | protocol | The protocol. |
System.Int32 | streams | The streams. |
Properties
Port
Gets or sets the SCTP port.
Declaration
public int Port { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
SctpProtocol
Gets or sets the SCTP sub-protocol (association usage).
Declaration
public string SctpProtocol { get; }
Property Value
Type | Description |
---|---|
System.String |
Streams
Gets the number of incoming streams.
Declaration
public int Streams { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
FromAttributeValue(String)
Initializes a new instance of the PortAttribute class.
Declaration
public static MapAttribute FromAttributeValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The attribute value. |
Returns
Type | Description |
---|---|
MapAttribute |
GetAttributeValue()
Gets the internal value of the attribute.
Declaration
protected override string GetAttributeValue()
Returns
Type | Description |
---|---|
System.String |