#include #include #include #include using namespace rtc; using namespace std; #ifndef H_SIMPLEDATACHANNEL #define H_SIMPLEDATACHANNEL class SimpleDatachannel { public: unordered_map> peer_connection_map; unordered_map> data_channel_map; string local_id; Configuration config; shared_ptr ws; function on_message; shared_ptr create_peer_connection(weak_ptr wws, string id); string random_id(size_t length); void connect(string id, shared_ptr, string label); SimpleDatachannel(string, string); ~SimpleDatachannel(); private: }; #endif