uvgRTP
4.0.0
An open-source library for RTP/SRTP media delivery
Loading...
Searching...
No Matches
include
uvgrtp
context.hh
1
#pragma once
2
3
#include "
util.hh
"
4
#include "uvgrtp/export.hh"
5
#include "uvgrtp/definitions.hh"
6
7
#include <map>
8
#include <string>
9
10
11
namespace
uvgrtp {
12
13
class
session;
14
class
socketfactory;
15
19
class
UVGRTP_EXPORT
context
{
20
public
:
28
context
();
29
37
~context
();
38
50
session
*
create_session
(
const
char
* address);
51
64
session
*
create_session
(
const
char
* local_address,
const
char
* remote_address);
65
77
rtp_error_t
destroy_session
(
uvgrtp::session
*
session
);
78
86
bool
crypto_enabled
()
const
;
87
88
#if UVGRTP_EXTENDED_API
89
101
uvgrtp::session
*
create_session
(std::pair<std::string, std::string> addresses);
102
114
uvgrtp::session
*
create_session
(std::string address);
115
117
// Obsolete method, replaced by create_session(std::pair<std::string, std::string> addresses);
118
uvgrtp::session
*create_session(std::string remote_addr, std::string local_addr);
120
#endif
121
122
123
private
:
124
125
class
context_impl;
126
context_impl* pimpl_;
127
};
128
}
129
130
namespace
uvg_rtp = uvgrtp;
uvgrtp::context
Provides CNAME isolation and can be used to create uvgrtp::session objects.
Definition
context.hh:19
uvgrtp::session
Provides ZRTP synchronization and can be used to create uvgrtp::media_stream objects.
Definition
session.hh:30
uvgrtp::context::crypto_enabled
bool crypto_enabled() const
Has Crypto++ been included in uvgRTP library.
uvgrtp::context::destroy_session
rtp_error_t destroy_session(uvgrtp::session *session)
Destroy RTP session and all of its media streams.
uvgrtp::context::~context
~context()
RTP context destructor.
uvgrtp::context::create_session
session * create_session(const char *local_address, const char *remote_address)
Create a new RTP session between two IP addresses.
uvgrtp::context::context
context()
RTP context constructor.
uvgrtp::context::create_session
session * create_session(const char *address)
Create a new RTP session.
uvgrtp::context::create_session
uvgrtp::session * create_session(std::string address)
Create a new RTP session.
uvgrtp::context::create_session
uvgrtp::session * create_session(std::pair< std::string, std::string > addresses)
Create a new RTP session between two IP addresses.
util.hh
Generated by
1.12.0