Provides CNAME isolation and can be used to create uvgrtp::session objects.
More...
#include <context.hh>
Provides CNAME isolation and can be used to create uvgrtp::session objects.
Definition at line 18 of file context.hh.
◆ context()
uvgrtp::context::context |
( |
| ) |
|
RTP context constructor.
Most of the time one RTP context per application is enough. If CNAME namespace isolation is required, multiple context objects can be created.
◆ ~context()
uvgrtp::context::~context |
( |
| ) |
|
◆ create_session() [1/2]
uvgrtp::session * uvgrtp::context::create_session |
( |
std::pair< std::string, std::string > | addresses | ) |
|
Create a new RTP session between two IP addresses.
- Parameters
-
addresses | Local and remote IP address for session as a pair |
- Returns
- RTP session object
- Return values
-
◆ create_session() [2/2]
Create a new RTP session.
- Parameters
-
address | IP address of the remote participant |
- Returns
- RTP session object
- Return values
-
uvgrtp::session | On success |
nullptr | If "address" is empty or memory allocation failed |
◆ crypto_enabled()
bool uvgrtp::context::crypto_enabled |
( |
| ) |
const |
Has Crypto++ been included in uvgRTP library.
- Return values
-
true | Crypto++ has been included, using SRTP is possible |
false | Crypto++ has not been included, using SRTP is not possible |
◆ destroy_session()
Destroy RTP session and all of its media streams.
- Parameters
-
session | Pointer to the session object that should be destroyed |
- Returns
- RTP error code
- Return values
-
RTP_OK | On success |
RTP_INVALID_VALUE | If session is nullptr |
The documentation for this class was generated from the following file: