@@ -42,6 +42,7 @@ public:
string protocol, Reliability reliability);
virtual ~DataChannel();
+ uint16_t id() const;
unsigned int stream() const;
string label() const;
string protocol() const;
@@ -81,6 +81,8 @@ DataChannel::DataChannel(weak_ptr<PeerConnection> pc, unsigned int stream, strin
DataChannel::~DataChannel() { close(); }
+uint16_t DataChannel::id() const { return uint16_t(mStream); }
+
unsigned int DataChannel::stream() const { return mStream; }
string DataChannel::label() const { return mLabel; }