Added optional stream to emplaceDataChannel()

This commit is contained in:
Paul-Louis Ageneau
2020-11-07 16:19:54 +01:00
parent 973f58ec8b
commit 5eaed06b01
2 changed files with 15 additions and 11 deletions

View File

@ -135,7 +135,8 @@ private:
void forwardBufferedAmount(uint16_t stream, size_t amount);
std::shared_ptr<DataChannel> emplaceDataChannel(Description::Role role, string label,
string protocol, Reliability reliability);
string protocol, Reliability reliability,
std::optional<unsigned int> stream = nullopt);
std::shared_ptr<DataChannel> findDataChannel(uint16_t stream);
void iterateDataChannels(std::function<void(std::shared_ptr<DataChannel> channel)> func);
void openDataChannels();