Skip to content

Commit a0f3f01

Browse files
Re-licensed under MPL 2.0
1 parent 7056789 commit a0f3f01

File tree

166 files changed

+2761
-4189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+2761
-4189
lines changed

LICENSE

+373-504
Large diffs are not rendered by default.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# libdatachannel - C/C++ WebRTC network library
22

3-
[![License: LGPL v2.1 or later](https://img.shields.io/badge/License-LGPL_v2.1_or_later-blue.svg)](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html)
3+
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0_or_later-blue.svg)](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html)
44
[![Build with OpenSSL](https://github.com/paullouisageneau/libdatachannel/actions/workflows/build-openssl.yml/badge.svg)](https://github.com/paullouisageneau/libdatachannel/actions/workflows/build-openssl.yml)
55
[![Build with GnuTLS](https://github.com/paullouisageneau/libdatachannel/actions/workflows/build-gnutls.yml/badge.svg)](https://github.com/paullouisageneau/libdatachannel/actions/workflows/build-gnutls.yml)
66
[![Gitter](https://badges.gitter.im/libdatachannel/community.svg)](https://gitter.im/libdatachannel/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -18,7 +18,7 @@ It can be compiled with multiple backends:
1818

1919
The WebRTC stack is fully compatible with browsers like Firefox and Chromium, see [Compatibility](#Compatibility) below. Additionally, code using Data Channels and WebSockets from the library may be compiled as is to WebAssembly for browsers with [datachannel-wasm](https://github.com/paullouisageneau/datachannel-wasm).
2020

21-
libdatachannel is licensed under LGPLv2.1 or later, see [LICENSE](https://github.com/paullouisageneau/libdatachannel/blob/master/LICENSE).
21+
libdatachannel is licensed under MPL 2.0 or later, see [LICENSE](https://github.com/paullouisageneau/libdatachannel/blob/master/LICENSE).
2222

2323
libdatachannel is available on [AUR](https://aur.archlinux.org/packages/libdatachannel/), [vcpkg](https://vcpkg.info/port/libdatachannel), and [FreeBSD ports](https://www.freshports.org/www/libdatachannel). Bindings are available for [Rust](https://crates.io/crates/datachannel) and [Node.js](https://www.npmjs.com/package/node-datachannel).
2424

@@ -38,7 +38,7 @@ See [BUILDING.md](https://github.com/paullouisageneau/libdatachannel/blob/master
3838

3939
## Examples
4040

41-
See [examples](https://github.com/paullouisageneau/libdatachannel/blob/master/examples/) for complete usage examples with signaling server (under GPLv2).
41+
See [examples](https://github.com/paullouisageneau/libdatachannel/blob/master/examples/) for complete usage examples with signaling server (under MPL 2.0).
4242

4343
Additionally, you might want to have a look at the [C API documentation](https://github.com/paullouisageneau/libdatachannel/blob/master/DOC.md).
4444

examples/client-benchmark/main.cpp

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/**
22
* libdatachannel client-benchmark example
33
* Copyright (c) 2019-2020 Paul-Louis Ageneau
44
* Copyright (c) 2019-2021 Murat Dogan
@@ -7,18 +7,9 @@
77
* Copyright (c) 2020 Lara Mackey
88
* Copyright (c) 2020 Erik Cota-Robles
99
*
10-
* This program is free software; you can redistribute it and/or
11-
* modify it under the terms of the GNU General Public License
12-
* as published by the Free Software Foundation; either version 2
13-
* of the License, or (at your option) any later version.
14-
*
15-
* This program is distributed in the hope that it will be useful,
16-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18-
* GNU General Public License for more details.
19-
*
20-
* You should have received a copy of the GNU General Public License
21-
* along with this program; If not, see <http://www.gnu.org/licenses/>.
10+
* This Source Code Form is subject to the terms of the Mozilla Public
11+
* License, v. 2.0. If a copy of the MPL was not distributed with this
12+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
2213
*/
2314

2415
#include "rtc/rtc.hpp"

examples/client/main.cpp

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/**
22
* libdatachannel client example
33
* Copyright (c) 2019-2020 Paul-Louis Ageneau
44
* Copyright (c) 2019 Murat Dogan
@@ -7,18 +7,9 @@
77
* Copyright (c) 2020 Lara Mackey
88
* Copyright (c) 2020 Erik Cota-Robles
99
*
10-
* This program is free software; you can redistribute it and/or
11-
* modify it under the terms of the GNU General Public License
12-
* as published by the Free Software Foundation; either version 2
13-
* of the License, or (at your option) any later version.
14-
*
15-
* This program is distributed in the hope that it will be useful,
16-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18-
* GNU General Public License for more details.
19-
*
20-
* You should have received a copy of the GNU General Public License
21-
* along with this program; If not, see <http://www.gnu.org/licenses/>.
10+
* This Source Code Form is subject to the terms of the Mozilla Public
11+
* License, v. 2.0. If a copy of the MPL was not distributed with this
12+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
2213
*/
2314

2415
#include "rtc/rtc.hpp"

examples/copy-paste-capi/answerer.c

+3-13
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,9 @@
22
* Copyright (c) 2020 Paul-Louis Ageneau
33
* Copyright (c) 2020 Stevedan Ogochukwu Omodolor
44
*
5-
* This library is free software; you can redistribute it and/or
6-
* modify it under the terms of the GNU Lesser General Public
7-
* License as published by the Free Software Foundation; either
8-
* version 2.1 of the License, or (at your option) any later version.
9-
*
10-
* This library is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
* Lesser General Public License for more details.
14-
*
15-
* You should have received a copy of the GNU Lesser General Public
16-
* License along with this library; if not, write to the Free Software
17-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5+
* This Source Code Form is subject to the terms of the Mozilla Public
6+
* License, v. 2.0. If a copy of the MPL was not distributed with this
7+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
188
*/
199

2010
#include <rtc/rtc.h>

examples/copy-paste-capi/offerer.c

+3-13
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,9 @@
22
* Copyright (c) 2020 Paul-Louis Ageneau
33
* Copyright (c) 2020 Stevedan Ogochukwu Omodolor
44
*
5-
* This library is free software; you can redistribute it and/or
6-
* modify it under the terms of the GNU Lesser General Public
7-
* License as published by the Free Software Foundation; either
8-
* version 2.1 of the License, or (at your option) any later version.
9-
*
10-
* This library is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
* Lesser General Public License for more details.
14-
*
15-
* You should have received a copy of the GNU Lesser General Public
16-
* License along with this library; if not, write to the Free Software
17-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5+
* This Source Code Form is subject to the terms of the Mozilla Public
6+
* License, v. 2.0. If a copy of the MPL was not distributed with this
7+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
188
*/
199

2010
#include <rtc/rtc.h>

examples/copy-paste/answerer.cpp

+5-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
/**
2-
* Copyright (c) 2019 Paul-Louis Ageneau, Murat Dogan
2+
* Copyright (c) 2019 Paul-Louis Ageneau
3+
* Copyright (c) 2019 Murat Dogan
34
*
4-
* This library is free software; you can redistribute it and/or
5-
* modify it under the terms of the GNU Lesser General Public
6-
* License as published by the Free Software Foundation; either
7-
* version 2.1 of the License, or (at your option) any later version.
8-
*
9-
* This library is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12-
* Lesser General Public License for more details.
13-
*
14-
* You should have received a copy of the GNU Lesser General Public
15-
* License along with this library; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5+
* This Source Code Form is subject to the terms of the Mozilla Public
6+
* License, v. 2.0. If a copy of the MPL was not distributed with this
7+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
178
*/
189

1910
#include "rtc/rtc.hpp"

examples/copy-paste/offerer.cpp

+5-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
/**
2-
* Copyright (c) 2019 Paul-Louis Ageneau, Murat Dogan
2+
* Copyright (c) 2019 Paul-Louis Ageneau
3+
* Copyright (c) 2019 Murat Dogan
34
*
4-
* This library is free software; you can redistribute it and/or
5-
* modify it under the terms of the GNU Lesser General Public
6-
* License as published by the Free Software Foundation; either
7-
* version 2.1 of the License, or (at your option) any later version.
8-
*
9-
* This library is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12-
* Lesser General Public License for more details.
13-
*
14-
* You should have received a copy of the GNU Lesser General Public
15-
* License along with this library; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5+
* This Source Code Form is subject to the terms of the Mozilla Public
6+
* License, v. 2.0. If a copy of the MPL was not distributed with this
7+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
178
*/
189

1910
#include "rtc/rtc.hpp"

examples/media-receiver/main.cpp

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
/*
1+
/**
22
* libdatachannel media receiver example
33
* Copyright (c) 2020 Staz Modrzynski
44
* Copyright (c) 2020 Paul-Louis Ageneau
55
*
6-
* This program is free software; you can redistribute it and/or
7-
* modify it under the terms of the GNU General Public License
8-
* as published by the Free Software Foundation; either version 2
9-
* of the License, or (at your option) any later version.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License
17-
* along with this program; If not, see <http://www.gnu.org/licenses/>.
6+
* This Source Code Form is subject to the terms of the Mozilla Public
7+
* License, v. 2.0. If a copy of the MPL was not distributed with this
8+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
189
*/
1910

2011
#include "rtc/rtc.hpp"

examples/media-sender/main.cpp

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
/*
1+
/**
22
* libdatachannel media sender example
33
* Copyright (c) 2020 Staz Modrzynski
44
* Copyright (c) 2020 Paul-Louis Ageneau
55
*
6-
* This program is free software; you can redistribute it and/or
7-
* modify it under the terms of the GNU General Public License
8-
* as published by the Free Software Foundation; either version 2
9-
* of the License, or (at your option) any later version.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License
17-
* along with this program; If not, see <http://www.gnu.org/licenses/>.
6+
* This Source Code Form is subject to the terms of the Mozilla Public
7+
* License, v. 2.0. If a copy of the MPL was not distributed with this
8+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
189
*/
1910

2011
#include "rtc/rtc.hpp"

examples/media-sfu/main.cpp

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
/*
1+
/**
22
* libdatachannel client example
33
* Copyright (c) 2020 Staz Modrzynski
44
* Copyright (c) 2020 Paul-Louis Ageneau
55
*
6-
* This program is free software; you can redistribute it and/or
7-
* modify it under the terms of the GNU General Public License
8-
* as published by the Free Software Foundation; either version 2
9-
* of the License, or (at your option) any later version.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License
17-
* along with this program; If not, see <http://www.gnu.org/licenses/>.
6+
* This Source Code Form is subject to the terms of the Mozilla Public
7+
* License, v. 2.0. If a copy of the MPL was not distributed with this
8+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
189
*/
1910

2011
#include "rtc/rtc.hpp"

0 commit comments

Comments
 (0)