![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
SDP media description. More...
#include <roc_sdp/media_description.h>

Public Member Functions | |
| MediaDescription (core::IArena &arena) | |
| Initialize empty media description. | |
| void | clear () |
| Clear all fields. | |
| MediaType | type () const |
| Media type. | |
| int | port () const |
| Transport port. | |
| int | nb_ports () const |
| Number of transport port(s). | |
| MediaTransport | transport () const |
| Transport protocol. | |
| unsigned | default_payload_id () const |
| Default media payload id. | |
| size_t | nb_payload_ids () const |
| Number of payload ids. | |
| unsigned | payload_id (size_t i) const |
| Get the payload id that was listed at the i position in the media description. | |
| size_t | nb_connection_data () const |
| Number of connection data. | |
| const ConnectionData & | connection_data (size_t i) const |
| Get the reference of the i-th connection data that was listed just after the media description. | |
| bool | set_type (MediaType type) |
| Set media type. | |
| bool | set_transport (MediaTransport transport) |
| Set proto. | |
| bool | set_port (long port) |
| Set transport port. | |
| bool | set_nb_ports (long nb_ports) |
| Set number of transport port(s). | |
| bool | add_payload_id (unsigned payload_id) |
| Add a media payload id. | |
| bool | add_connection_data (address::AddrFamily addrtype, const char *str, size_t str_len) |
| Add a connection field from a string. | |
Public Member Functions inherited from roc::core::RefCounted< MediaDescription, core::ArenaAllocation > | |
| RefCounted () | |
| Initialize. | |
| RefCounted (const core::ArenaAllocation &policy) | |
| Initialize. | |
| int | getref () const |
| Get reference counter. | |
| void | incref () const |
| Increment reference counter. | |
| void | decref () const |
| Decrement reference counter. | |
Public Member Functions inherited from roc::core::ListNode< Tag > | |
| ListData * | list_data () const |
| Get pointer to internal data. | |
Additional Inherited Members | |
Static Public Member Functions inherited from roc::core::ListNode< Tag > | |
| static ListNode * | list_node (ListData *data) |
| Get pointer to parent node from pointer to internal data. | |
Protected Member Functions inherited from roc::core::ArenaAllocation | |
| IArena & | arena () const |
| Get arena. | |
| ArenaAllocation (IArena &arena) | |
| Initialize. | |
| template<class T > | |
| void | destroy (T &object) |
| Destroy object and return memory to arena. | |
| roc::sdp::MediaDescription::MediaDescription | ( | core::IArena & | arena | ) |
Initialize empty media description.
| bool roc::sdp::MediaDescription::add_connection_data | ( | address::AddrFamily | addrtype, |
| const char * | str, | ||
| size_t | str_len | ||
| ) |
Add a connection field from a string.
| bool roc::sdp::MediaDescription::add_payload_id | ( | unsigned | payload_id | ) |
Add a media payload id.
| void roc::sdp::MediaDescription::clear | ( | ) |
Clear all fields.
| const ConnectionData & roc::sdp::MediaDescription::connection_data | ( | size_t | i | ) | const |
Get the reference of the i-th connection data that was listed just after the media description.
| unsigned roc::sdp::MediaDescription::default_payload_id | ( | ) | const |
Default media payload id.
| size_t roc::sdp::MediaDescription::nb_connection_data | ( | ) | const |
Number of connection data.
| size_t roc::sdp::MediaDescription::nb_payload_ids | ( | ) | const |
Number of payload ids.
| int roc::sdp::MediaDescription::nb_ports | ( | ) | const |
Number of transport port(s).
| unsigned roc::sdp::MediaDescription::payload_id | ( | size_t | i | ) | const |
Get the payload id that was listed at the i position in the media description.
| int roc::sdp::MediaDescription::port | ( | ) | const |
Transport port.
| bool roc::sdp::MediaDescription::set_nb_ports | ( | long | nb_ports | ) |
Set number of transport port(s).
| bool roc::sdp::MediaDescription::set_port | ( | long | port | ) |
Set transport port.
| bool roc::sdp::MediaDescription::set_transport | ( | MediaTransport | transport | ) |
Set proto.
| bool roc::sdp::MediaDescription::set_type | ( | MediaType | type | ) |
Set media type.
| MediaTransport roc::sdp::MediaDescription::transport | ( | ) | const |
Transport protocol.
| MediaType roc::sdp::MediaDescription::type | ( | ) | const |
Media type.