uvgRTP
lib.hh
1 #pragma once
2 
3 #include <map>
4 #include "session.hh"
5 
6 namespace uvgrtp {
7 
8  class context {
9  public:
17 
25 
37  uvgrtp::session *create_session(std::string addr);
38 
56  uvgrtp::session *create_session(std::string remote_addr, std::string local_addr);
57 
69 
71  std::string& get_cname();
73 
74  private:
75  /* Generate CNAME for participant using host and login names */
76  std::string generate_cname();
77 
78  /* CNAME is the same for all connections */
79  std::string cname_;
80  };
81 };
82 
83 namespace uvg_rtp = uvgrtp;
Definition: lib.hh:8
uvgrtp::session * create_session(std::string remote_addr, std::string local_addr)
Create a new RTP session.
rtp_error_t destroy_session(uvgrtp::session *session)
Destroy RTP session and all of its media streams.
~context()
RTP context destructor.
context()
RTP context constructor.
uvgrtp::session * create_session(std::string addr)
Create a new RTP session.
Definition: session.hh:12