8#include <unordered_map>
29 session(std::string cname, std::string addr);
30 session(std::string cname, std::string remote_addr, std::string local_addr);
105 std::string& get_key();
110 std::shared_ptr<uvgrtp::zrtp> zrtp_;
112 std::string generic_address_;
115 std::string remote_address_;
118 std::string local_address_;
121 std::unordered_map<uint32_t, uvgrtp::media_stream *> streams_;
123 std::mutex session_mtx_;
129namespace uvg_rtp = uvgrtp;
Provides ZRTP synchronization and can be used to create uvgrtp::media_stream objects.
uvgrtp::media_stream * create_stream(uint16_t port, rtp_format_t fmt, int rce_flags)
Create a unidirectional media_stream for an RTP session.
uvgrtp::media_stream * create_stream(uint16_t src_port, uint16_t dst_port, rtp_format_t fmt, int rce_flags)
Create a uni- or bidirectional media stream.
rtp_error_t destroy_stream(uvgrtp::media_stream *stream)
Destroy a media stream.