Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ libs/webrtc/doc` builds it into `doc/html/index.html`.

Distributed under the [Boost Software License, Version 1.0](LICENSE_1_0.txt).
Natively webrtc uses libdatachannel, under the Mozilla Public License 2.0,
with the superproject's patches of `tools/libdatachannel/patches` (under the
MPL too), and its nested dependencies under their own licences.
with the superproject's patches of `tools/libdatachannel/patches` (each under
the licence of the files it changes), and its nested dependencies under their
own licences.
9 changes: 6 additions & 3 deletions doc/native.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ files: the superproject pins it at commit `6b1e2e6`, with its nested sources at
the commits `tools/libdatachannel/pin.json` lists, and builds it from them
(<<webrtc-building>>), with the corrections of `tools/libdatachannel/patches`
applied to the build's copy: two races of 0.24.6 that failed a connection
whose DTLS or SCTP transport started while the answer was being applied.
whose DTLS or SCTP transport started while the answer was being applied, and
two defects, of its SCTP cleanup and of the usrsctp it pins, that hung a
process making a second <<webrtc-runtime,runtime>> once the first was gone.
Nothing of it appears in a public header: a program never names
libdatachannel.

libdatachannel is distributed under the Mozilla Public License 2.0, and its
nested dependencies under their own licences, which the superproject's
third-party table lists. MPL's copyleft is per file: while libdatachannel is
changed only by those patches, themselves under the MPL, it reaches none of
webcpp's own files, which are under the Boost Software License alone. A
changed only by those patches, each under the licence of the files it changes
(the MPL, or usrsctp's BSD 3-Clause), it reaches none of webcpp's own files,
which are under the Boost Software License alone. A
program that distributes a native build of webrtc distributes libdatachannel
with it, and keeps its licence and notices.

Expand Down
6 changes: 3 additions & 3 deletions test/native_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ class full_exchange {
BOOST_TEST((received_b_ == received{{4, false}, {2, true}}));
BOOST_TEST((received_a_ == received{{4, true}}));
BOOST_TEST_EQ(at_b_.size(), 6u);
BOOST_TEST(at_b_.substr(4) == "ab");
BOOST_TEST(at_b_.size() >= 4 && at_b_.substr(4) == "ab");
BOOST_TEST(at_a_ == "pong");
BOOST_TEST(closed_a_);
BOOST_TEST(closed_b_);
BOOST_TEST(cb_.value().ready_state() == webrtc::data_channel_state::closed);
BOOST_TEST(cb_ && cb_->ready_state() == webrtc::data_channel_state::closed);
const auto local = p_.a->local_description();
BOOST_TEST(local && local->type == webrtc::sdp_type::offer);
BOOST_TEST(local && local->sdp.find("a=candidate") != std::string::npos);
Expand Down Expand Up @@ -454,7 +454,7 @@ void a_channel_closed_by_its_owner() {
p.run();
BOOST_TEST(receive && *receive == asio::error::operation_aborted);
BOOST_TEST(close_wait && !*close_wait);
BOOST_TEST(ca->ready_state() == webrtc::data_channel_state::closed);
BOOST_TEST(ca && ca->ready_state() == webrtc::data_channel_state::closed);
}

// Destruction with a wait pending runs its handler once, with operation_aborted; a move carries
Expand Down
Loading