Class RTCPBye
RTCP Goodbye packet as defined in RFC3550. The BYE packet indicates that one or more sources are no longer active.
Inheritance
System.Object
RTCPBye
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class RTCPBye
Constructors
| Improve this Doc View SourceRTCPBye(Byte[])
Create a new RTCP Goodbye packet from a serialised byte array.
Declaration
public RTCPBye(byte[] packet)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | packet | The byte array holding the Goodbye packet. |
RTCPBye(UInt32, String)
Creates a new RTCP Bye payload.
Declaration
public RTCPBye(uint ssrc, string reason)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt32 | ssrc | The synchronisation source of the RTP stream being closed. |
| System.String | reason | Optional reason for closing. Maximum length is 255 bytes (note bytes not characters). |
Fields
| Improve this Doc View SourceHeader
Declaration
public RTCPHeader Header
Field Value
| Type | Description |
|---|---|
| RTCPHeader |
MAX_REASON_BYTES
Declaration
public const int MAX_REASON_BYTES = 255
Field Value
| Type | Description |
|---|---|
| System.Int32 |
MIN_PACKET_SIZE
Declaration
public const int MIN_PACKET_SIZE = 8
Field Value
| Type | Description |
|---|---|
| System.Int32 |
SSRC_SIZE
Declaration
public const int SSRC_SIZE = 4
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Properties
| Improve this Doc View SourceReason
Declaration
public string Reason { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
SSRC
Declaration
public uint SSRC { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
Methods
| Improve this Doc View SourceGetBytes()
Gets the raw bytes for the Goodbye packet.
Declaration
public byte[] GetBytes()
Returns
| Type | Description |
|---|---|
| System.Byte[] | A byte array. |