Class PortAttribute
The attribute can be associated with an SDP media description (m- line) with a 'UDP/DTLS/SCTP' or a 'TCP/DTLS/SCTP' proto value, in which case the m- line port value indicates the port of the underlying transport-layer protocol (UDP or TCP), on which SCTP is carried, and the 'sctp-port' value indicates the SCTP port.
Inherited Members
Namespace: FM.LiveSwitch.Sdp.Sctp
Assembly: FM.LiveSwitch.dll
Syntax
public class PortAttribute : AttributeConstructors
PortAttribute(Int32)
Initializes a new instance of the PortAttribute class.
Declaration
public PortAttribute(int port)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | port | The SCTP port. | 
Properties
Port
Gets or sets the SCTP port.
Declaration
public int Port { get; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
FromAttributeValue(String)
Initializes a new instance of the PortAttribute class.
Declaration
public static PortAttribute FromAttributeValue(string value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | value | The attribute value. | 
Returns
| Type | Description | 
|---|---|
| PortAttribute | 
GetAttributeValue()
Gets the internal value of the attribute.
Declaration
protected override string GetAttributeValue()Returns
| Type | Description | 
|---|---|
| System.String |