Bladeren bron

Generate Pelican site

Paul-Louis Ageneau 10 maanden geleden
commit
e74b774ab0

+ 1 - 0
CNAME

@@ -0,0 +1 @@
+libdatachannel.org

+ 42 - 0
archives.html

@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+        <title>libdatachannel</title>
+        <meta name="viewport" content="width=device-width, initial-scale=1">
+        <meta charset="utf-8">
+        <link href="https://libdatachannel.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="libdatachannel Full Atom Feed">
+        <!-- twitter card metadata -->
+        <!-- OG Tags -->
+        <!-- favicon -->
+        <!-- css -->
+        <link rel="stylesheet" type="text/css" href="https://libdatachannel.org/theme/css/main.css">
+        <link rel="stylesheet" type="text/css" href="https://libdatachannel.org/theme/css/pygments-highlight.css">
+</head>
+<body>
+<a href="https://github.com/paullouisageneau/libdatachannel">
+<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://libdatachannel.org/images/forkme_right_gray_6d6d6d.svg" alt="Fork me on GitHub" />
+</a>
+    <div role="banner" id="banner">
+        <header>
+            <nav id="menu">
+                <ul>
+                        <li><a href="https://libdatachannel.org/">libdatachannel</a></li>
+                        <li><a href="https://libdatachannel.org/pages/reference.html">reference</a></li>
+                </ul>
+            </nav>
+        </header>
+    </div>
+        <div class="page" role="main">
+<div class="page-title">
+        <h1>archives</h1>
+    </div>
+<div class="articles">
+    <ol>
+    </ol>
+</div>
+                <footer>
+                    <p>© 2021 Paul-Louis Ageneau</p>
+                </footer>
+        </div>
+</body>
+</html>

+ 0 - 0
authors.html


+ 42 - 0
categories.html

@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+        <title>libdatachannel - Categories</title>
+        <meta name="viewport" content="width=device-width, initial-scale=1">
+        <meta charset="utf-8">
+        <link href="https://libdatachannel.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="libdatachannel Full Atom Feed">
+        <!-- twitter card metadata -->
+        <!-- OG Tags -->
+        <!-- favicon -->
+        <!-- css -->
+        <link rel="stylesheet" type="text/css" href="https://libdatachannel.org/theme/css/main.css">
+        <link rel="stylesheet" type="text/css" href="https://libdatachannel.org/theme/css/pygments-highlight.css">
+</head>
+<body>
+<a href="https://github.com/paullouisageneau/libdatachannel">
+<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://libdatachannel.org/images/forkme_right_gray_6d6d6d.svg" alt="Fork me on GitHub" />
+</a>
+    <div role="banner" id="banner">
+        <header>
+            <nav id="menu">
+                <ul>
+                        <li><a href="https://libdatachannel.org/">libdatachannel</a></li>
+                        <li><a href="https://libdatachannel.org/pages/reference.html">reference</a></li>
+                </ul>
+            </nav>
+        </header>
+    </div>
+        <div class="page" role="main">
+<div class="page-title">
+        <h1>categories</h1>
+</div>
+<div class="articles">
+    <ul>
+    </ul>
+</div>
+                <footer>
+                    <p>© 2021 Paul-Louis Ageneau</p>
+                </footer>
+        </div>
+</body>
+</html>

+ 2 - 0
feeds/all.atom.xml

@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom"><title>libdatachannel</title><link href="https://libdatachannel.org/" rel="alternate"></link><link href="https://libdatachannel.org/feeds/all.atom.xml" rel="self"></link><id>https://libdatachannel.org/</id><updated>2024-10-23T14:24:03Z</updated></feed>

+ 103 - 0
images/forkme_left_gray_6d6d6d.svg

@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448)  -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+	<!ENTITY ns_svg "http://www.w3.org/2000/svg">
+	<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
+]>
+<svg  version="1.1" id="Layer_1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="147" height="147"
+	 viewBox="28.386 1.317 147 147" overflow="visible" enable-background="new 28.386 1.317 147 147" xml:space="preserve" style="-webkit-filter: drop-shadow( 0px 0px 5px rgba(0, 0, 0, .7)); filter: drop-shadow( 0px 0px 5px rgba(0, 0, 0, .7));">
+<g>
+	<g>
+		<g>
+			
+			<linearGradient id="balk_3_" gradientUnits="userSpaceOnUse" x1="125.5657" y1="634.8547" x2="105.6487" y2="654.7717" gradientTransform="matrix(-4.371139e-008 -1 1 -4.371139e-008 -557.2045 174.0939)">
+				<stop offset="0" style="stop-color:#6d6d6d"/>
+				<stop offset="1" style="stop-color:#5d5d5d"/>
+			</linearGradient>
+			<polygon id="balk" fill="url(#balk_3_)" points="167.538,-1.528 27.589,138.418 7.674,118.503 147.621,-21.445"/>
+			<g id="letters">
+				<path fill="#FFFFFF" d="M47.906,91.107c-0.516-0.518-0.888-0.858-1.115-1.026l3.66-3.66l1.272,1.271
+					c-0.19,0.145-0.482,0.414-0.879,0.811l-1.38,1.38l1.778,1.779l1.152-1.152c0.349-0.35,0.597-0.619,0.741-0.809l1.25,1.25
+					c-0.176,0.129-0.41,0.342-0.706,0.638l-1.256,1.255l2.388,2.388c0.448,0.448,0.803,0.772,1.061,0.973l-1.48,1.479
+					c-0.19-0.25-0.532-0.623-1.026-1.116L47.906,91.107z"/>
+				<path fill="#FFFFFF" d="M60.76,91.469c-0.729,0.73-1.531,1.024-2.406,0.88c-0.76-0.137-1.522-0.588-2.29-1.354
+					c-1.716-1.716-1.871-3.278-0.463-4.687c1.392-1.392,2.944-1.229,4.661,0.487c0.76,0.759,1.207,1.52,1.345,2.278
+					C61.765,89.949,61.482,90.747,60.76,91.469z M56.704,87.437c-0.349,0.351-0.413,0.747-0.19,1.195
+					c0.121,0.258,0.405,0.611,0.854,1.06c0.448,0.447,0.801,0.732,1.061,0.854c0.447,0.22,0.847,0.157,1.193-0.192
+					c0.349-0.349,0.416-0.741,0.204-1.183c-0.122-0.258-0.411-0.615-0.866-1.071c-0.447-0.446-0.801-0.731-1.06-0.854
+					C57.45,87.026,57.054,87.088,56.704,87.437z"/>
+				<path fill="#FFFFFF" d="M63.537,88.537c-0.13-0.174-0.376-0.444-0.741-0.811l-3.544-3.544c-0.355-0.355-0.613-0.593-0.772-0.708
+					l1.249-1.248l0.341,0.346c-0.038-0.492,0.102-0.898,0.42-1.217c0.136-0.137,0.313-0.254,0.531-0.354l1.29,1.29
+					c-0.335,0.059-0.583,0.167-0.741,0.327c-0.212,0.212-0.333,0.553-0.362,1.021l2.771,2.771c0.388,0.388,0.68,0.658,0.876,0.811
+					L63.537,88.537z"/>
+				<path fill="#FFFFFF" d="M66.82,85.254c-0.13-0.174-0.376-0.444-0.741-0.809l-6.086-6.086c-0.356-0.357-0.615-0.595-0.773-0.708
+					l1.293-1.293c0.122,0.167,0.351,0.417,0.685,0.752l3.202,3.201l-0.249-1.801c-0.03-0.258-0.08-0.475-0.148-0.647l1.472-1.474
+					l0.432,3.488l4.822,1.469l-1.334,1.334c-0.146-0.083-0.427-0.188-0.846-0.317l-3.055-0.957l1.744,1.744
+					c0.388,0.388,0.68,0.656,0.876,0.81L66.82,85.254z"/>
+				<path fill="#FFFFFF" d="M72.192,70.631c0.068-0.691,0.365-1.301,0.89-1.825c0.595-0.594,1.311-0.775,2.146-0.549
+					c0.684,0.196,1.367,0.637,2.052,1.32l1.561,1.562c0.519,0.519,0.882,0.854,1.094,1.004l-1.359,1.359
+					c-0.207-0.28-0.545-0.656-1.017-1.128l-1.54-1.54c-0.836-0.836-1.482-1.027-1.938-0.573c-0.31,0.312-0.479,0.603-0.51,0.874
+					c0.388,0.252,0.78,0.575,1.175,0.971l1.563,1.563c0.517,0.518,0.881,0.853,1.093,1.005l-1.37,1.37
+					c-0.207-0.28-0.545-0.656-1.017-1.127l-1.529-1.551c-0.479-0.479-0.852-0.766-1.117-0.856c-0.266-0.092-0.516-0.021-0.75,0.214
+					c-0.227,0.229-0.343,0.55-0.35,0.967l2.84,2.841c0.129,0.129,0.281,0.271,0.456,0.423c0.174,0.15,0.271,0.24,0.296,0.263
+					l-1.326,1.326c-0.105-0.152-0.335-0.402-0.684-0.752l-3.558-3.555c-0.409-0.411-0.687-0.666-0.831-0.767l1.271-1.249
+					l0.356,0.371c0.069-0.6,0.253-1.048,0.55-1.344C71.088,70.799,71.607,70.593,72.192,70.631z"/>
+				<path fill="#FFFFFF" d="M82.379,65.408l-2.528,2.528c0.79,0.669,1.516,0.674,2.177,0.013c0.433-0.435,0.702-0.923,0.808-1.473
+					l1.219,1.221c-0.281,0.631-0.602,1.125-0.957,1.48c-0.754,0.753-1.592,1.081-2.511,0.982c-0.874-0.083-1.713-0.526-2.518-1.332
+					c-0.684-0.685-1.096-1.424-1.24-2.221c-0.15-0.884,0.092-1.643,0.731-2.279c0.624-0.624,1.313-0.893,2.074-0.8
+					c0.715,0.091,1.404,0.471,2.072,1.139C81.964,64.926,82.19,65.173,82.379,65.408z M78.646,65.341
+					c-0.441,0.441-0.392,0.964,0.154,1.569l1.402-1.403C79.614,64.948,79.095,64.893,78.646,65.341z"/>
+				<path fill="#FFFFFF" d="M89.562,62.667c-0.73,0.729-1.532,1.022-2.407,0.88c-0.759-0.137-1.522-0.588-2.29-1.354
+					c-1.716-1.719-1.871-3.278-0.463-4.688c1.392-1.392,2.946-1.229,4.662,0.486c0.759,0.76,1.207,1.52,1.344,2.277
+					C90.567,61.146,90.284,61.946,89.562,62.667z M85.507,58.635c-0.35,0.351-0.412,0.746-0.191,1.194
+					c0.122,0.259,0.407,0.61,0.854,1.06c0.448,0.449,0.803,0.733,1.061,0.854c0.447,0.221,0.846,0.157,1.194-0.191
+					c0.35-0.35,0.415-0.743,0.203-1.184c-0.122-0.259-0.41-0.615-0.866-1.07c-0.447-0.448-0.802-0.732-1.06-0.854
+					C86.252,58.223,85.856,58.286,85.507,58.635z"/>
+				<path fill="#FFFFFF" d="M89.599,52.268c0.606-0.624,1.349-0.833,2.222-0.628c0.737,0.176,1.443,0.602,2.12,1.275l1.562,1.562
+					c0.518,0.518,0.881,0.853,1.093,1.005l-1.369,1.369c-0.152-0.195-0.495-0.567-1.028-1.114l-1.527-1.553
+					c-0.852-0.865-1.555-1.021-2.105-0.471c-0.25,0.25-0.382,0.633-0.396,1.149l2.807,2.805c0.13,0.13,0.279,0.271,0.457,0.423
+					c0.174,0.152,0.271,0.24,0.295,0.263l-1.325,1.326c-0.107-0.149-0.335-0.399-0.687-0.751l-3.5-3.499
+					c-0.438-0.438-0.731-0.711-0.876-0.811l1.262-1.261l0.408,0.411C89.042,53.126,89.24,52.624,89.599,52.268z"/>
+				<path fill="#FFFFFF" d="M103.262,47.535c0.082,0.28,0.062,0.627-0.063,1.037c-0.152,0.501-0.44,0.965-0.866,1.39
+					c-1.886,1.886-4.146,1.509-6.783-1.13c-1.255-1.254-1.945-2.479-2.074-3.671c-0.129-1.194,0.321-2.31,1.356-3.343
+					c0.594-0.595,1.296-0.916,2.109-0.971l1.299,1.301c-0.908,0.064-1.632,0.366-2.172,0.906c-1.119,1.119-0.791,2.565,0.983,4.34
+					c1.798,1.8,3.147,2.244,4.055,1.341c0.736-0.737,0.649-1.563-0.263-2.476c-0.084-0.099-0.389-0.388-0.91-0.867L101.325,44
+					c0.298,0.354,0.645,0.732,1.039,1.127l1.321,1.322c0.213,0.212,0.416,0.4,0.613,0.567c0.196,0.168,0.329,0.286,0.397,0.354
+					c-0.038,0.066-0.118,0.146-0.239,0.239L103.262,47.535z"/>
+				<path fill="#FFFFFF" d="M105.659,46.415c-0.138-0.167-0.388-0.434-0.753-0.797l-3.545-3.545
+					c-0.356-0.357-0.611-0.599-0.763-0.721l1.28-1.279c0.13,0.157,0.361,0.403,0.695,0.738l3.499,3.498
+					c0.388,0.39,0.677,0.661,0.865,0.821L105.659,46.415z M100.367,39.821c-0.22,0.219-0.49,0.32-0.813,0.312
+					c-0.321-0.013-0.599-0.133-0.825-0.361c-0.236-0.234-0.359-0.516-0.373-0.838c-0.013-0.322,0.092-0.595,0.313-0.813
+					c0.211-0.212,0.479-0.313,0.805-0.301c0.32,0.014,0.602,0.137,0.838,0.372c0.229,0.229,0.348,0.505,0.359,0.825
+					C100.679,39.34,100.578,39.607,100.367,39.821z"/>
+				<path fill="#FFFFFF" d="M104.313,37.641l0.982-0.981l1.104,1.104c-0.037,0.037-0.111,0.104-0.222,0.198
+					c-0.109,0.094-0.209,0.187-0.301,0.276l-0.483,0.484l2.12,2.12c0.51,0.509,0.931,0.598,1.265,0.265
+					c0.235-0.235,0.382-0.514,0.44-0.834l1.141,1.141c-0.13,0.434-0.394,0.848-0.788,1.243c-0.556,0.557-1.138,0.742-1.746,0.562
+					c-0.455-0.137-1.003-0.522-1.641-1.162l-2.039-2.039l0.011-0.011l-0.021-0.022l-0.184,0.161c-0.1,0.102-0.219,0.241-0.356,0.427
+					l-1.104-1.105l0.563-0.563l-0.445-0.446c-0.214-0.214-0.396-0.374-0.549-0.482l1.326-1.326c0.122,0.169,0.273,0.345,0.458,0.526
+					L104.313,37.641z"/>
+				<path fill="#FFFFFF" d="M111.484,31.287l0.377-0.376l1.248,1.248l-0.376,0.377l2.604,2.604c0.356,0.357,0.639,0.608,0.843,0.753
+					l-1.492,1.491c-0.168-0.226-0.441-0.529-0.82-0.909l-2.538-2.538l-2.077,2.077l2.526,2.527c0.41,0.409,0.717,0.688,0.921,0.832
+					l-1.479,1.479c-0.152-0.212-0.403-0.49-0.754-0.842l-6.007-6.006c-0.35-0.35-0.631-0.601-0.842-0.754l1.48-1.48
+					c0.159,0.222,0.411,0.5,0.753,0.844l2.151,2.15l2.076-2.077l-1.993-1.991c-0.463-0.463-0.797-0.769-1.001-0.912l1.492-1.492
+					c0.139,0.197,0.354,0.443,0.65,0.739L111.484,31.287z"/>
+				<path fill="#FFFFFF" d="M119.115,33.048c-0.599,0.6-1.309,0.775-2.128,0.532c-0.66-0.206-1.34-0.658-2.039-1.356l-1.562-1.562
+					c-0.518-0.519-0.881-0.854-1.094-1.004l1.37-1.37c0.146,0.188,0.488,0.562,1.027,1.116l1.528,1.551
+					c0.435,0.434,0.795,0.696,1.082,0.788c0.35,0.123,0.675,0.033,0.976-0.27c0.212-0.212,0.323-0.572,0.336-1.089l-2.806-2.805
+					c-0.13-0.13-0.285-0.271-0.468-0.423c-0.183-0.153-0.279-0.236-0.297-0.252l1.326-1.326c0.114,0.144,0.348,0.391,0.696,0.74
+					l3.486,3.485c0.447,0.449,0.739,0.728,0.877,0.833l-1.249,1.249l-0.407-0.412C119.73,32.13,119.509,32.655,119.115,33.048z"/>
+				<path fill="#FFFFFF" d="M124.74,27.401c-0.411,0.41-0.902,0.605-1.472,0.586l0.409,0.408l-1.203,1.204
+					c-0.107-0.149-0.336-0.399-0.688-0.751l-6.027-6.027c-0.447-0.447-0.743-0.724-0.889-0.821l1.293-1.293
+					c0.121,0.152,0.399,0.444,0.832,0.877l1.99,1.976c0.131-0.567,0.363-1.021,0.697-1.354c0.602-0.604,1.339-0.81,2.213-0.618
+					c0.752,0.175,1.46,0.592,2.12,1.253c0.676,0.676,1.11,1.417,1.309,2.223C125.545,26.01,125.351,26.79,124.74,27.401z
+					 M120.635,23.639c-0.252,0.252-0.391,0.643-0.412,1.167l1.976,1.979c0.479-0.01,0.839-0.131,1.075-0.367
+					c0.299-0.299,0.357-0.688,0.185-1.167c-0.136-0.381-0.384-0.75-0.741-1.108C121.855,23.281,121.161,23.114,120.635,23.639z"/>
+			</g>
+			<g opacity="0.5">
+				<line fill="none" stroke="#FFFFFF" stroke-dasharray="3 1.5" x1="19.705" y1="143.389" x2="174.08" y2="-10.986"/>
+				<line fill="none" stroke="#FFFFFF" stroke-dasharray="3 1.5" x1="1.58" y1="127.514" x2="155.955" y2="-26.861"/>
+			</g>
+		</g>
+	</g>
+</g>
+</svg>

+ 102 - 0
images/forkme_right_gray_6d6d6d.svg

@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448)  -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+	<!ENTITY ns_svg "http://www.w3.org/2000/svg">
+	<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
+]>
+<svg  version="1.1" id="Layer_1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="147" height="147"
+	 viewBox="28.386 1.317 147 147" overflow="visible" enable-background="new 28.386 1.317 147 147" xml:space="preserve" style="-webkit-filter: drop-shadow( 0px 0px 5px rgba(0, 0, 0, .7)); filter: drop-shadow( 0px 0px 5px rgba(0, 0, 0, .7));">
+<g>
+	<g>
+		<g>
+			
+			<linearGradient id="balk_5_" gradientUnits="userSpaceOnUse" x1="125.5657" y1="662.8528" x2="105.6487" y2="682.7698" gradientTransform="matrix(1 0 0 1 0 -614.7715)">
+				<stop offset="0" style="stop-color:#6d6d6d"/>
+				<stop offset="1" style="stop-color:#5d5d5d"/>
+			</linearGradient>
+			<polygon id="balk" fill="url(#balk_5_)" points="175.622,137.972 35.676,-1.977 55.591,-21.892 195.539,118.055" />
+			<g id="letters">
+				<path fill="#FFFFFF" d="M82.988,18.34c0.518-0.516,0.858-0.888,1.026-1.115l3.66,3.66l-1.271,1.272
+					c-0.145-0.19-0.414-0.482-0.811-0.879l-1.38-1.38l-1.779,1.778l1.152,1.152c0.35,0.349,0.619,0.597,0.809,0.741l-1.25,1.25
+					c-0.129-0.176-0.342-0.41-0.638-0.706l-1.255-1.256l-2.388,2.388c-0.448,0.448-0.772,0.803-0.973,1.061l-1.479-1.48
+					c0.25-0.19,0.623-0.532,1.116-1.026L82.988,18.34z"/>
+				<path fill="#FFFFFF" d="M82.625,31.194c-0.73-0.729-1.024-1.531-0.88-2.406c0.137-0.76,0.588-1.522,1.354-2.29
+					c1.716-1.716,3.278-1.871,4.687-0.463c1.392,1.392,1.229,2.944-0.487,4.661c-0.759,0.76-1.52,1.207-2.278,1.345
+					C84.145,32.198,83.347,31.915,82.625,31.194z M86.657,27.138c-0.351-0.349-0.747-0.413-1.195-0.19
+					c-0.258,0.121-0.611,0.405-1.06,0.854c-0.447,0.448-0.732,0.801-0.854,1.061c-0.22,0.447-0.157,0.847,0.192,1.193
+					c0.349,0.349,0.741,0.416,1.183,0.204c0.258-0.122,0.615-0.411,1.071-0.866c0.446-0.447,0.731-0.801,0.854-1.06
+					C87.069,27.884,87.006,27.488,86.657,27.138z"/>
+				<path fill="#FFFFFF" d="M85.557,33.971c0.174-0.13,0.444-0.376,0.811-0.741l3.544-3.544c0.355-0.355,0.593-0.613,0.708-0.772
+					l1.248,1.249l-0.346,0.341c0.492-0.038,0.898,0.102,1.217,0.42c0.137,0.136,0.254,0.313,0.354,0.531l-1.29,1.29
+					c-0.059-0.335-0.167-0.583-0.327-0.741c-0.212-0.212-0.553-0.333-1.021-0.362l-2.771,2.771c-0.388,0.388-0.658,0.68-0.811,0.876
+					L85.557,33.971z"/>
+				<path fill="#FFFFFF" d="M88.84,37.253c0.174-0.13,0.444-0.376,0.809-0.741l6.086-6.086c0.357-0.356,0.595-0.615,0.708-0.773
+					l1.293,1.293c-0.167,0.122-0.417,0.351-0.752,0.685l-3.201,3.202l1.801-0.249c0.258-0.03,0.475-0.08,0.647-0.148l1.474,1.472
+					l-3.488,0.432l-1.469,4.822l-1.334-1.334c0.083-0.146,0.188-0.427,0.317-0.846l0.957-3.055l-1.744,1.744
+					c-0.388,0.388-0.656,0.68-0.81,0.876L88.84,37.253z"/>
+				<path fill="#FFFFFF" d="M103.463,42.625c0.691,0.068,1.301,0.365,1.825,0.89c0.594,0.595,0.775,1.311,0.549,2.146
+					c-0.196,0.684-0.637,1.367-1.32,2.052l-1.562,1.561c-0.519,0.519-0.854,0.882-1.004,1.094l-1.359-1.359
+					c0.28-0.207,0.656-0.545,1.128-1.017l1.54-1.54c0.836-0.836,1.027-1.482,0.573-1.938c-0.312-0.31-0.603-0.479-0.874-0.51
+					c-0.252,0.388-0.575,0.78-0.971,1.175l-1.563,1.563c-0.518,0.517-0.853,0.881-1.005,1.093l-1.37-1.37
+					c0.28-0.207,0.656-0.545,1.127-1.017l1.551-1.529c0.479-0.479,0.766-0.852,0.856-1.117c0.092-0.266,0.021-0.516-0.214-0.75
+					c-0.229-0.227-0.55-0.343-0.967-0.35l-2.841,2.84c-0.129,0.129-0.271,0.281-0.423,0.456c-0.15,0.174-0.24,0.271-0.263,0.296
+					l-1.326-1.326c0.152-0.105,0.402-0.335,0.752-0.684l3.555-3.558c0.411-0.409,0.666-0.687,0.767-0.831l1.249,1.271l-0.371,0.356
+					c0.6,0.069,1.048,0.253,1.344,0.55C103.295,41.522,103.501,42.04,103.463,42.625z"/>
+				<path fill="#FFFFFF" d="M108.686,52.813l-2.528-2.528c-0.669,0.79-0.674,1.516-0.013,2.177c0.435,0.433,0.923,0.702,1.473,0.808
+					l-1.221,1.219c-0.631-0.281-1.125-0.602-1.48-0.957c-0.753-0.754-1.081-1.592-0.982-2.511c0.083-0.874,0.526-1.713,1.332-2.518
+					c0.685-0.684,1.424-1.096,2.221-1.24c0.884-0.15,1.643,0.092,2.279,0.731c0.624,0.624,0.893,1.313,0.8,2.074
+					c-0.091,0.715-0.471,1.404-1.139,2.072C109.168,52.398,108.921,52.623,108.686,52.813z M108.753,49.079
+					c-0.441-0.441-0.964-0.392-1.569,0.154l1.403,1.402C109.146,50.047,109.201,49.529,108.753,49.079z"/>
+				<path fill="#FFFFFF" d="M111.427,59.995c-0.729-0.73-1.022-1.532-0.88-2.407c0.137-0.759,0.588-1.522,1.354-2.29
+					c1.719-1.716,3.278-1.871,4.688-0.463c1.392,1.392,1.229,2.946-0.486,4.662c-0.76,0.759-1.52,1.207-2.277,1.344
+					C112.948,61,112.149,60.718,111.427,59.995z M115.459,55.941c-0.351-0.35-0.746-0.412-1.194-0.191
+					c-0.259,0.122-0.61,0.407-1.06,0.854c-0.449,0.448-0.733,0.803-0.854,1.061c-0.221,0.447-0.157,0.846,0.191,1.194
+					c0.35,0.35,0.743,0.415,1.184,0.203c0.259-0.122,0.615-0.41,1.07-0.866c0.448-0.447,0.732-0.802,0.854-1.06
+					C115.871,56.686,115.808,56.289,115.459,55.941z"/>
+				<path fill="#FFFFFF" d="M121.826,60.032c0.624,0.606,0.833,1.349,0.628,2.222c-0.176,0.737-0.602,1.443-1.275,2.12l-1.562,1.562
+					c-0.518,0.518-0.853,0.881-1.005,1.093l-1.369-1.369c0.195-0.152,0.567-0.495,1.114-1.028l1.553-1.527
+					c0.865-0.852,1.021-1.555,0.471-2.105c-0.25-0.25-0.633-0.382-1.149-0.396l-2.805,2.807c-0.13,0.13-0.271,0.279-0.423,0.457
+					c-0.152,0.174-0.24,0.271-0.263,0.295l-1.326-1.325c0.149-0.107,0.399-0.335,0.751-0.687l3.499-3.5
+					c0.438-0.438,0.711-0.731,0.811-0.876l1.261,1.262l-0.411,0.408C120.968,59.476,121.47,59.674,121.826,60.032z"/>
+				<path fill="#FFFFFF" d="M126.559,73.696c-0.28,0.082-0.627,0.062-1.037-0.063c-0.501-0.152-0.965-0.44-1.39-0.866
+					c-1.886-1.886-1.509-4.146,1.13-6.783c1.254-1.255,2.479-1.945,3.671-2.074c1.194-0.129,2.31,0.321,3.343,1.356
+					c0.595,0.594,0.916,1.296,0.971,2.109l-1.301,1.299c-0.064-0.908-0.366-1.632-0.906-2.172c-1.119-1.119-2.565-0.791-4.34,0.983
+					c-1.8,1.798-2.244,3.147-1.341,4.055c0.737,0.736,1.563,0.649,2.476-0.263c0.099-0.084,0.388-0.389,0.867-0.91l1.393,1.392
+					c-0.354,0.298-0.732,0.645-1.127,1.039l-1.322,1.321c-0.212,0.213-0.4,0.416-0.567,0.613c-0.168,0.196-0.286,0.329-0.354,0.397
+					c-0.066-0.038-0.146-0.118-0.239-0.239L126.559,73.696z"/>
+				<path fill="#FFFFFF" d="M127.679,76.093c0.167-0.138,0.434-0.388,0.797-0.753l3.545-3.545c0.357-0.356,0.599-0.611,0.721-0.763
+					l1.279,1.28c-0.157,0.13-0.403,0.361-0.738,0.695l-3.498,3.499c-0.39,0.388-0.661,0.677-0.821,0.865L127.679,76.093z
+					 M134.274,70.801c-0.219-0.22-0.32-0.49-0.312-0.813c0.013-0.321,0.133-0.599,0.361-0.825c0.234-0.236,0.516-0.359,0.838-0.373
+					c0.322-0.013,0.595,0.092,0.813,0.313c0.212,0.211,0.313,0.479,0.301,0.805c-0.014,0.32-0.137,0.602-0.372,0.838
+					c-0.229,0.229-0.505,0.348-0.825,0.359C134.754,71.113,134.488,71.012,134.274,70.801z"/>
+				<path fill="#FFFFFF" d="M136.453,74.746l0.981,0.982l-1.104,1.104c-0.037-0.037-0.104-0.111-0.198-0.222
+					c-0.094-0.109-0.187-0.209-0.276-0.301l-0.484-0.483l-2.12,2.12c-0.509,0.51-0.598,0.931-0.265,1.265
+					c0.235,0.235,0.514,0.382,0.834,0.44l-1.141,1.141c-0.434-0.13-0.848-0.394-1.243-0.788c-0.557-0.556-0.742-1.138-0.562-1.746
+					c0.137-0.455,0.522-1.003,1.162-1.641l2.039-2.039l0.011,0.011l0.022-0.021l-0.161-0.184c-0.102-0.1-0.241-0.219-0.427-0.356
+					l1.105-1.104l0.563,0.563l0.446-0.445c0.214-0.214,0.374-0.396,0.482-0.549l1.326,1.326c-0.169,0.122-0.345,0.273-0.526,0.458
+					L136.453,74.746z"/>
+				<path fill="#FFFFFF" d="M142.807,81.917l0.376,0.377l-1.248,1.248l-0.377-0.376l-2.604,2.604
+					c-0.357,0.356-0.608,0.639-0.753,0.843l-1.491-1.492c0.226-0.168,0.529-0.441,0.909-0.82l2.538-2.538l-2.077-2.077l-2.527,2.526
+					c-0.409,0.41-0.688,0.717-0.832,0.921l-1.479-1.479c0.212-0.152,0.49-0.403,0.842-0.754l6.006-6.007
+					c0.35-0.35,0.601-0.631,0.754-0.842l1.48,1.48c-0.222,0.159-0.5,0.411-0.844,0.753l-2.15,2.151l2.077,2.076l1.991-1.993
+					c0.463-0.463,0.769-0.797,0.912-1.001l1.492,1.492c-0.197,0.139-0.443,0.354-0.739,0.65L142.807,81.917z"/>
+				<path fill="#FFFFFF" d="M141.046,89.549c-0.6-0.599-0.775-1.309-0.532-2.128c0.206-0.66,0.658-1.34,1.356-2.039l1.562-1.562
+					c0.519-0.518,0.854-0.881,1.004-1.094l1.37,1.37c-0.188,0.146-0.562,0.488-1.116,1.027l-1.551,1.528
+					c-0.434,0.435-0.696,0.795-0.788,1.082c-0.123,0.35-0.033,0.675,0.27,0.976c0.212,0.212,0.572,0.323,1.089,0.336l2.805-2.806
+					c0.13-0.13,0.271-0.285,0.423-0.468c0.153-0.183,0.236-0.279,0.252-0.297l1.326,1.326c-0.144,0.114-0.391,0.348-0.74,0.696
+					l-3.485,3.486c-0.449,0.447-0.728,0.739-0.833,0.877l-1.249-1.249l0.412-0.407C141.964,90.163,141.44,89.943,141.046,89.549z"/>
+				<path fill="#FFFFFF" d="M146.694,95.174c-0.41-0.411-0.605-0.902-0.586-1.472l-0.408,0.409l-1.204-1.203
+					c0.149-0.107,0.399-0.336,0.751-0.688l6.027-6.027c0.447-0.447,0.724-0.743,0.821-0.889l1.293,1.293
+					c-0.152,0.121-0.444,0.399-0.877,0.832l-1.976,1.99c0.567,0.131,1.021,0.363,1.354,0.697c0.604,0.602,0.81,1.339,0.618,2.213
+					c-0.175,0.752-0.592,1.46-1.253,2.12c-0.676,0.676-1.417,1.11-2.223,1.309C148.084,95.979,147.304,95.784,146.694,95.174z
+					 M150.455,91.069c-0.252-0.252-0.643-0.391-1.167-0.412l-1.979,1.976c0.01,0.479,0.131,0.839,0.367,1.075
+					c0.299,0.299,0.688,0.357,1.167,0.185c0.381-0.136,0.75-0.384,1.108-0.741C150.814,92.288,150.981,91.595,150.455,91.069z"/>
+			</g>
+			<g opacity="0.5">
+				<line fill="none" stroke="#FFFFFF" stroke-dasharray="3 1.5" x1="30.705" y1="-9.861" x2="185.08" y2="144.514"/>
+				<line fill="none" stroke="#FFFFFF" stroke-dasharray="3 1.5" x1="46.58" y1="-27.986" x2="200.955" y2="126.389"/>
+			</g>
+		</g>
+	</g>
+</g>
+</svg>

BIN
images/icon_compatible.png


BIN
images/icon_discord.png


BIN
images/icon_easy.png


BIN
images/icon_github.png


BIN
images/icon_gitter.png


BIN
images/icon_portable.png


+ 100 - 0
index.html

@@ -0,0 +1,100 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+          <title>libdatachannel</title>
+        <meta name="viewport" content="width=device-width, initial-scale=1">
+        <meta charset="utf-8">
+        <link href="https://libdatachannel.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="libdatachannel Full Atom Feed">
+        <!-- twitter card metadata -->
+<meta name="twitter:site" content="">
+<meta name="twitter:title" content="libdatachannel">
+<meta name="twitter:description" content="">
+        <!-- OG Tags -->
+<meta property="og:url" content="https://libdatachannel.org/"/>
+<meta property="og:title" content="libdatachannel | libdatachannel" />
+<meta property="og:description" content="" />
+        <!-- favicon -->
+        <!-- css -->
+        <link rel="stylesheet" type="text/css" href="https://libdatachannel.org/theme/css/main.css">
+        <link rel="stylesheet" type="text/css" href="https://libdatachannel.org/theme/css/pygments-highlight.css">
+
+
+
+</head>
+<body>
+<a href="https://github.com/paullouisageneau/libdatachannel">
+<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://libdatachannel.org/images/forkme_right_gray_6d6d6d.svg" alt="Fork me on GitHub" />
+</a>
+    <div role="banner" id="banner">
+        <header>
+            <nav id="menu">
+                <ul>
+                        <li class="active"><a href="https://libdatachannel.org/">libdatachannel</a></li>
+                        <li><a href="https://libdatachannel.org/pages/reference.html">reference</a></li>
+                </ul>
+            </nav>
+        </header>
+    </div>
+        <div class="page" role="main">
+  <div class="article" role="article">
+    <article>
+        <header>
+          <h1>
+            libdatachannel
+          </h1>
+        </header>
+      <div class="content">
+         <div id="home">
+  <header>
+    <p>libdatachannel is an open-source software library implementing WebRTC Data Channels, WebRTC Media Transport, and WebSockets. It is written in C++17 and offers C bindings. The <a href="https://github.com/paullouisageneau/libdatachannel">source code</a> is available under MPL 2.0, and the library is on <a href="https://aur.archlinux.org/packages/libdatachannel/">AUR</a>, <a href="https://github.com/Microsoft/vcpkg/tree/master/ports/libdatachannel">Vcpkg</a>, and <a href="https://github.com/Microsoft/vcpkg/tree/master/ports/libdatachannel">FreeBSD Ports</a>.</p>
+    <div class="social">
+      <a href="https://github.com/paullouisageneau/libdatachannel"><img src="/images/icon_github.png" alt="GitHub"></a>
+      <a href="https://gitter.im/libdatachannel/community"><img src="/images/icon_gitter.png" alt="Gitter"></a>
+      <a href="https://discord.gg/jXAP8jp3Nn"><img src="/images/icon_discord.png" alt="Discord"></a>
+    </div>
+  </header>
+  <section>
+    <img src="/images/icon_easy.png">
+    <h3>Easy</h3>
+    <ul>
+      <li>Simple API inspired by the JavaScript API including WebSocket for signaling</li>
+      <li>Minimal external dependencies (only <a href="https://www.openssl.org/">OpenSSL</a> or <a href="https://www.openssl.org/">GnuTLS</a>)
+      <li>Lightweight and way easier to compile and use than Google's <a href="https://webrtc.googlesource.com/src/">reference library</a>
+    </ul>
+  </section>
+  <section>
+    <img src="/images/icon_compatible.png">
+    <h3>Compatible</h3>
+    <ul>
+      <li>Compatible with browsers Firefox, Chromium, and Safari, and other WebRTC libraries (see <a href="https://github.com/sipsorcery/webrtc-echoes">webrtc-echoes</a>)</li>
+      <li>Licensed under <a href="https://www.mozilla.org/en-US/MPL/2.0/FAQ/">MPL 2.0</a>, meaning software with any license may use the library</li>
+      <li>Community-maintained bindings available for <a href="https://github.com/lerouxrgd/datachannel-rs">Rust</a>, <a href="https://github.com/murat-dogan/node-datachannel">Node.js</a>, and <a href="https://github.com/hanseuljun/datachannel-unity">Unity</a></li>
+    </ul>
+  </section>
+  <section>
+    <img src="/images/icon_portable.png">
+    <h3>Portable</h3>
+    <ul>
+      <li>Support for POSIX platforms (including GNU/Linux, Android, FreeBSD, Apple macOS and iOS) and Microsoft Windows</li>
+      <li>Support for <a href="https://www.gnutls.org/">GnuTLS</a>, <a href="https://www.trustedfirmware.org/projects/mbed-tls/">Mbed TLS</a>, or <a href="https://www.openssl.org/">OpenSSL</a> as TLS backend
+      <li>Code using Data Channels and WebSockets may be compiled as-is to WebAssembly for browsers with <a href="https://github.com/paullouisageneau/datachannel-wasm">datachannel-wasm</a></li>
+    </ul>
+  </section>
+  <div class="sponsor">
+        <iframe src="https://github.com/sponsors/paullouisageneau/button" title="Sponsor paullouisageneau" height="35" width="116" style="border: 0;"></iframe>
+        <div class="liberapay"><a href="https://liberapay.com/paullouisageneau/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></div>
+        <div class="ko-fi"><a href='https://ko-fi.com/A0A8CIDHU' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a></div>
+  </div>
+      </div>
+      <div class="back-to-top">
+          <a href="#top">back to top</a>
+      </div>
+    </article>
+  </div>
+<!-- end article -->
+                <footer>
+                    <p>© 2021 Paul-Louis Ageneau</p>
+                </footer>
+        </div>
+</body>
+</html>

+ 785 - 0
pages/reference.html

@@ -0,0 +1,785 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+          <title>libdatachannel</title>
+        <meta name="viewport" content="width=device-width, initial-scale=1">
+        <meta charset="utf-8">
+        <link href="https://libdatachannel.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="libdatachannel Full Atom Feed">
+        <!-- twitter card metadata -->
+<meta name="twitter:site" content="">
+<meta name="twitter:title" content="Reference">
+<meta name="twitter:description" content="">
+        <!-- OG Tags -->
+<meta property="og:url" content="https://libdatachannel.org/pages/reference.html"/>
+<meta property="og:title" content="libdatachannel | Reference" />
+<meta property="og:description" content="" />
+        <!-- favicon -->
+        <!-- css -->
+        <link rel="stylesheet" type="text/css" href="https://libdatachannel.org/theme/css/main.css">
+        <link rel="stylesheet" type="text/css" href="https://libdatachannel.org/theme/css/pygments-highlight.css">
+
+
+
+</head>
+<body>
+<a href="https://github.com/paullouisageneau/libdatachannel">
+<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://libdatachannel.org/images/forkme_right_gray_6d6d6d.svg" alt="Fork me on GitHub" />
+</a>
+    <div role="banner" id="banner">
+        <header>
+            <nav id="menu">
+                <ul>
+                        <li><a href="https://libdatachannel.org/">libdatachannel</a></li>
+                        <li class="active"><a href="https://libdatachannel.org/pages/reference.html">reference</a></li>
+                </ul>
+            </nav>
+        </header>
+    </div>
+        <div class="page" role="main">
+  <div class="article" role="article">
+    <article>
+        <header>
+          <h1>
+            Reference
+          </h1>
+        </header>
+      <div class="content">
+         <h2>libdatachannel - C API Documentation</h2>
+<p>The following details the C API of libdatachannel. The C API is available by including the <code>rtc/rtc.h</code> header.</p>
+<h3>General considerations</h3>
+<p>Unless stated otherwise, functions return <code>RTC_ERR_SUCCESS</code>, defined as <code>0</code>, on success.</p>
+<p>All functions can return the following negative error codes:</p>
+<ul>
+<li><code>RTC_ERR_INVALID</code>: an invalid argument was provided</li>
+<li><code>RTC_ERR_FAILURE</code>: a runtime error happened</li>
+<li><code>RTC_ERR_NOT_AVAIL</code>: an element is not available at the moment</li>
+<li><code>RTC_ERR_TOO_SMALL</code>: a user-provided buffer is too small</li>
+</ul>
+<p>All functions taking pointers as arguments (excepted the opaque user pointer) need the memory to be accessible until the call returns, but it can be safely discarded afterwards.</p>
+<h3>Common</h3>
+<h4>rtcInitLogger</h4>
+<div class="highlight"><pre><span></span><code>void rtcInitLogger(rtcLogLevel level, rtcLogCallbackFunc cb)
+</code></pre></div>
+
+<p>Arguments:</p>
+<ul>
+<li><code>level</code>: the log level. It must be one of the following: <code>RTC_LOG_NONE</code>, <code>RTC_LOG_FATAL</code>, <code>RTC_LOG_ERROR</code>, <code>RTC_LOG_WARNING</code>, <code>RTC_LOG_INFO</code>, <code>RTC_LOG_DEBUG</code>, <code>RTC_LOG_VERBOSE</code>.</li>
+<li><code>cb</code> (optional): the callback to pass the log lines to. If the callback is already set, it is replaced. If NULL after a callback is set, the callback is unset. If NULL on first call, the library will log to stdout instead.</li>
+</ul>
+<p><code>cb</code> must have the following signature:
+<code>void myLogCallback(rtcLogLevel level, const char *message)</code></p>
+<p>Arguments:</p>
+<ul>
+<li><code>level</code>: the log level for the current message. It will be one of the following: <code>RTC_LOG_FATAL</code>, <code>RTC_LOG_ERROR</code>, <code>RTC_LOG_WARNING</code>, <code>RTC_LOG_INFO</code>, <code>RTC_LOG_DEBUG</code>, <code>RTC_LOG_VERBOSE</code>.</li>
+<li><code>message</code>: a null-terminated string containing the log message</li>
+</ul>
+<h4>rtcPreload</h4>
+<div class="highlight"><pre><span></span><code><span class="nb nb-Type">void</span><span class="w"> </span><span class="n">rtcPreload</span><span class="p">(</span><span class="nb nb-Type">void</span><span class="p">)</span>
+</code></pre></div>
+
+<p>An optional call to <code>rtcPreload</code> preloads the global resources used by the library. If it is not called, resources are lazy-loaded when they are required for the first time by a PeerConnection, which for instance prevents from properly timing connection establishment (as the first one will take way more time). The call blocks until preloading is finished. If resources are already loaded, the call has no effect.</p>
+<h4>rtcCleanup</h4>
+<div class="highlight"><pre><span></span><code>void rtcCleanup(void)
+</code></pre></div>
+
+<p>An optional call to <code>rtcCleanup</code> unloads the global resources used by the library. The call will block until unloading is done. If Peer Connections, Data Channels, Tracks, or WebSockets created through this API still exist, they will be destroyed. If resources are already unloaded, the call has no effect.</p>
+<p>Warning: This function requires all Peer Connections, Data Channels, Tracks, and WebSockets to be destroyed before returning, meaning all callbacks must return before this function returns. Therefore, it must never be called from a callback.</p>
+<h4>rtcSetUserPointer</h4>
+<div class="highlight"><pre><span></span><code>void rtcSetUserPointer(int id, void *user_ptr)
+</code></pre></div>
+
+<p>Sets a opaque user pointer for a Peer Connection, Data Channel, Track, or WebSocket. The user pointer will be passed as last argument in each corresponding callback. It will never be accessed in any way. The initial user pointer of a Peer Connection or WebSocket is <code>NULL</code>, and the initial one of a Data Channel or Track is the one of the Peer Connection at the time of creation.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the identifier of Peer Connection, Data Channel, Track, or WebSocket</li>
+<li><code>user_ptr</code>: an opaque pointer whose meaning is up to the user</li>
+</ul>
+<h3>PeerConnection</h3>
+<h4>rtcCreatePeerConnection</h4>
+<div class="highlight"><pre><span></span><code><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcCreatePeerConnection</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">rtcConfiguration</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">)</span>
+
+<span class="n">typedef</span><span class="w"> </span><span class="n">struct</span><span class="w"> </span><span class="p">{</span>
+<span class="w">  </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">**</span><span class="n">iceServers</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">iceServersCount</span><span class="p">;</span>
+<span class="w">  </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">proxyServer</span><span class="p">;</span>
+<span class="w">  </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">bindAddress</span><span class="p">;</span>
+<span class="w">  </span><span class="n">rtcCertificateType</span><span class="w"> </span><span class="n">certificateType</span><span class="p">;</span>
+<span class="w">  </span><span class="n">rtcTransportPolicy</span><span class="w"> </span><span class="n">iceTransportPolicy</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">bool</span><span class="w"> </span><span class="n">enableIceTcp</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">bool</span><span class="w"> </span><span class="n">enableIceUdpMux</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">bool</span><span class="w"> </span><span class="n">disableAutoNegotiation</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">bool</span><span class="w"> </span><span class="n">forceMediaTransport</span><span class="p">;</span>
+<span class="w">  </span><span class="n">uint16_t</span><span class="w"> </span><span class="n">portRangeBegin</span><span class="p">;</span>
+<span class="w">  </span><span class="n">uint16_t</span><span class="w"> </span><span class="n">portRangeEnd</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">mtu</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">maxMessageSize</span><span class="p">;</span>
+<span class="p">}</span><span class="w"> </span><span class="n">rtcConfiguration</span><span class="p">;</span>
+</code></pre></div>
+
+<p>Creates a Peer Connection.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>config</code>: the configuration structure, containing:<ul>
+<li><code>iceServers</code> (optional): an array of pointers on null-terminated ICE server URIs (NULL if unused)</li>
+<li><code>iceServersCount</code> (optional): number of URLs in the array pointed by <code>iceServers</code> (0 if unused)</li>
+<li><code>proxyServer</code> (optional): if non-NULL, specifies the proxy server URI to use for TURN relaying (ignored with libjuice as ICE backend)</li>
+<li><code>bindAddress</code> (optional): if non-NULL, bind only to the given local address (ignored with libnice as ICE backend)</li>
+<li><code>certificateType</code> (optional): certificate type, either <code>RTC_CERTIFICATE_ECDSA</code> or <code>RTC_CERTIFICATE_RSA</code> (0 or <code>RTC_CERTIFICATE_DEFAULT</code> if default)</li>
+<li><code>iceTransportPolicy</code> (optional): ICE transport policy, if set to <code>RTC_TRANSPORT_POLICY_RELAY</code>, the PeerConnection will emit only relayed candidates (0 or <code>RTC_TRANSPORT_POLICY_ALL</code> if default)</li>
+<li><code>enableIceTcp</code>: if true, generate TCP candidates for ICE (ignored with libjuice as ICE backend)</li>
+<li><code>enableIceUdpMux</code>: if true, connections are multiplexed on the same UDP port (should be combined with <code>portRangeBegin</code> and <code>portRangeEnd</code>, ignored with libnice as ICE backend)</li>
+<li><code>disableAutoNegotiation</code>: if true, the user is responsible for calling <code>rtcSetLocalDescription</code> after creating a Data Channel and after setting the remote description</li>
+<li><code>forceMediaTransport</code>: if true, the connection allocates the SRTP media transport even if no tracks are present (necessary to add tracks during later renegotiation)</li>
+<li><code>portRangeBegin</code> (optional): first port (included) of the allowed local port range (0 if unused)</li>
+<li><code>portRangeEnd</code> (optional): last port (included) of the allowed local port range (0 if unused)</li>
+<li><code>mtu</code> (optional): manually set the Maximum Transfer Unit (MTU) for the connection (0 if automatic)</li>
+<li><code>maxMessageSize</code> (optional): manually set the local maximum message size for Data Channels (0 if default)</li>
+</ul>
+</li>
+</ul>
+<p>Return value: the identifier of the new Peer Connection or a negative error code.</p>
+<p>The Peer Connection must be deleted with <code>rtcDeletePeerConnection</code>.</p>
+<p>Each entry in <code>iceServers</code> must match the format <code>[("stun"|"turn"|"turns") (":"|"://")][username ":" password "@"]hostname[":" port]["?transport=" ("udp"|"tcp"|"tls")]</code>. The default scheme is STUN, the default port is 3478 (5349 over TLS), and the default transport is UDP. For instance, a STUN server URI could be <code>mystunserver.org</code>, and a TURN server URI could be <code>turn:myuser:[email protected]</code>. Note transports TCP and TLS are only available for a TURN server with libnice as ICE backend and govern only the TURN control connection, meaning relaying is always performed over UDP.</p>
+<p>The <code>proxyServer</code> URI, if present, must match the format <code>[("http"|"socks5") (":"|"://")][username ":" password "@"]hostname["    :" port]</code>. The default scheme is HTTP, and the default port is 3128 for HTTP or 1080 for SOCKS5.</p>
+<p>If the username or password of an URI contains reserved special characters, they must be percent-encoded. In particular, ":" must be encoded as "%3A" and "@" must by encoded as "%40".</p>
+<h4>rtcClosePeerConnection</h4>
+<div class="highlight"><pre><span></span><code>int rtcClosePeerConnection(int pc)
+</code></pre></div>
+
+<p>Closes the Peer Connection.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+</ul>
+<p>Return value: <code>RTC_ERR_SUCCESS</code> or a negative error code</p>
+<h4>rtcDeletePeerConnection</h4>
+<div class="highlight"><pre><span></span><code>int rtcDeletePeerConnection(int pc)
+</code></pre></div>
+
+<p>Deletes the Peer Connection.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+</ul>
+<p>Return value: <code>RTC_ERR_SUCCESS</code> or a negative error code</p>
+<p>If it is not already closed, the Peer Connection is implicitly closed before being deleted. After this function has been called, <code>pc</code> must not be used in a function call anymore. This function will block until all scheduled callbacks of <code>pc</code> return (except the one this function might be called in) and no other callback will be called for <code>pc</code> after it returns.</p>
+<h4>rtcSetXCallback</h4>
+<p>These functions set, change, or unset (if <code>cb</code> is <code>NULL</code>) the different callbacks of a Peer Connection.</p>
+<div class="highlight"><pre><span></span><code>int rtcSetLocalDescriptionCallback(int pc, rtcDescriptionCallbackFunc cb)*
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myDescriptionCallback(int pc, const char *sdp, const char *type, void *user_ptr)</code></p>
+<div class="highlight"><pre><span></span><code>int rtcSetLocalCandidateCallback(int pc, rtcCandidateCallbackFunc cb)
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myCandidateCallback(int pc, const char *cand, const char *mid, void *user_ptr)</code></p>
+<div class="highlight"><pre><span></span><code>int rtcSetStateChangeCallback(int pc, rtcStateChangeCallbackFunc cb)
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myStateChangeCallback(int pc, rtcState state, void *user_ptr)</code></p>
+<p><code>state</code> will be one of the following: <code>RTC_CONNECTING</code>, <code>RTC_CONNECTED</code>, <code>RTC_DISCONNECTED</code>, <code>RTC_FAILED</code>, or <code>RTC_CLOSED</code>.</p>
+<div class="highlight"><pre><span></span><code>int rtcSetGatheringStateChangeCallback(int pc, rtcGatheringStateCallbackFunc cb)
+</code></pre></div>
+
+<p><code>void myGatheringStateCallback(int pc, rtcGatheringState state, void *user_ptr)</code></p>
+<p><code>state</code> will be <code>RTC_GATHERING_INPROGRESS</code> or <code>RTC_GATHERING_COMPLETE</code>.</p>
+<div class="highlight"><pre><span></span><code>int rtcSetDataChannelCallback(int pc, rtcDataChannelCallbackFunc cb)
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myDataChannelCallback(int pc, int dc, void *user_ptr)</code></p>
+<div class="highlight"><pre><span></span><code>int rtcSetTrackCallback(int pc, rtcTrackCallbackFunc cb)
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myTrackCallback(int pc, int tr, void *user_ptr)</code></p>
+<h4>rtcSetLocalDescription</h4>
+<div class="highlight"><pre><span></span><code><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcSetLocalDescription</span><span class="p">(</span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">pc</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="p">)</span>
+</code></pre></div>
+
+<p>Initiates the handshake process. Following this call, the local description callback will be called with the local description, which must be sent to the remote peer by the user's method of choice. Note this call is implicit after <code>rtcSetRemoteDescription</code> and <code>rtcCreateDataChannel</code> if <code>disableAutoNegotiation</code> was not set on Peer Connection creation.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>type</code> (optional): type of the description ("offer", "answer", "pranswer", or "rollback") or NULL for autodetection.</li>
+</ul>
+<h4>rtcSetRemoteDescription</h4>
+<div class="highlight"><pre><span></span><code><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcSetRemoteDescription</span><span class="p">(</span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">pc</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">sdp</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="p">)</span>
+</code></pre></div>
+
+<p>Sets the remote description received from the remote peer by the user's method of choice. The remote description may have candidates or not.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>type</code> (optional): type of the description ("offer", "answer", "pranswer", or "rollback") or NULL for autodetection.</li>
+</ul>
+<p>If the remote description is an offer and <code>disableAutoNegotiation</code> was not set in <code>rtcConfiguration</code>, the library will automatically answer by calling <code>rtcSetLocalDescription</code> internally. Otherwise, the user must call it to answer the remote description.</p>
+<h4>rtcAddRemoteCandidate</h4>
+<div class="highlight"><pre><span></span><code><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcAddRemoteCandidate</span><span class="p">(</span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">pc</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">cand</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">mid</span><span class="p">)</span>
+</code></pre></div>
+
+<p>Adds a trickled remote candidate received from the remote peer by the user's method of choice.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>cand</code>: a null-terminated SDP string representing the candidate (with or without the <code>"a="</code> prefix)</li>
+<li><code>mid</code> (optional): a null-terminated string representing the mid of the candidate in the remote SDP description or NULL for autodetection</li>
+</ul>
+<p>The Peer Connection must have a remote description set.</p>
+<p>Return value: <code>RTC_ERR_SUCCESS</code> or a negative error code</p>
+<h4>rtcGetLocalDescription</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetLocalDescription(int pc, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the current local description in SDP format.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>buffer</code>: a user-supplied buffer to store the description</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the description is not copied but the size is still returned.</p>
+<h4>rtcGetRemoteDescription</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetRemoteDescription(int pc, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the current remote description in SDP format.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>buffer</code>: a user-supplied buffer to store the description</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the description is not copied but the size is still returned.</p>
+<h4>rtcGetLocalDescriptionType</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetLocalDescriptionType(int pc, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the current local description type as string.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>buffer</code>: a user-supplied buffer to store the type</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the description is not copied but the size is still returned.</p>
+<h4>rtcGetRemoteDescription</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetRemoteDescriptionType(int pc, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the current remote description type as string.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>buffer</code>: a user-supplied buffer to store the type</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the description is not copied but the size is still returned.</p>
+<h4>rtcGetLocalAddress</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetLocalAddress(int pc, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the current local address, i.e. the network address of the currently selected local candidate. The address will have the format <code>"IP_ADDRESS:PORT"</code>, where <code>IP_ADDRESS</code> may be either IPv4 or IPv6. The call might fail if the PeerConnection is not in state <code>RTC_CONNECTED</code>, and the address might change after connection.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>buffer</code>: a user-supplied buffer to store the address</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the address is not copied but the size is still returned.</p>
+<h4>rtcGetRemoteAddress</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetRemoteAddress(int pc, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the current remote address, i.e. the network address of the currently selected remote candidate. The address will have the format <code>"IP_ADDRESS:PORT"</code>, where <code>IP_ADDRESS</code> may be either IPv4 or IPv6. The call may fail if the state is not <code>RTC_CONNECTED</code>, and the address might change after connection.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>buffer</code>: a user-supplied buffer to store the address</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the address is not copied but the size is still returned.</p>
+<h4>rtcGetSelectedCandidatePair</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetSelectedCandidatePair(int pc, char *local, int localSize, char *remote, int remoteSize)
+</code></pre></div>
+
+<p>Retrieves the currently selected candidate pair. The call may fail if the state is not <code>RTC_CONNECTED</code>, and the selected candidate pair might change after connection.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>local</code>: a user-supplied buffer to store the local candidate</li>
+<li><code>localSize</code>: the size of <code>local</code></li>
+<li><code>remote</code>: a user-supplied buffer to store the remote candidate</li>
+<li><code>remoteSize</code>: the size of <code>remote</code></li>
+</ul>
+<p>Return value: the maximun length of strings copied in buffers (including the terminating null character) or a negative error code</p>
+<p>If <code>local</code>, <code>remote</code>, or both, are <code>NULL</code>, the corresponding candidate is not copied, but the maximum length is still returned.</p>
+<h4>rtcIsNegotiationNeeded</h4>
+<div class="highlight"><pre><span></span><code>bool rtcIsNegotiationNeeded(int pc);
+</code></pre></div>
+
+<p>Return true if negotiation needs to be started or restarted, for instance to signal new tracks. If so, the user may call <code>rtcSetLocalDescription()</code> to start it.</p>
+<p>Arguments:
+- <code>pc</code>: the Peer Connection identifier</p>
+<p>Return value: true if negotiation is needed</p>
+<h4>rtcGetMaxDataChannelStream</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetMaxDataChannelStream(int pc);
+</code></pre></div>
+
+<p>Retrieves the maximum stream ID a Data Channel may use. It is useful to create user-negotiated Data Channels with <code>negotiated=true</code> and <code>manualStream=true</code>. The maximum is negotiated during connection, therefore the final value after connection might be lower than before connection if the remote maximum is lower.</p>
+<p>Arguments:
+- <code>pc</code>: the Peer Connection identifier</p>
+<p>Return value: the maximum stream ID (<code>stream</code> for a Data Channel may be set from 0 to this value included) or a negative error code</p>
+<h4>rtcGetRemoteMaxMessageSize</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetRemoteMaxMessageSize(int pc)
+</code></pre></div>
+
+<p>Retrieves the maximum message size for data channels on the peer connection as negotiated with the remote peer.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+</ul>
+<p>Return value: the maximum message size for data channels or a negative error code</p>
+<h3>Channel (Common API for Data Channel, Track, and WebSocket)</h3>
+<p>The following common functions might be called with a generic channel identifier. It may be the identifier of either a Data Channel, a Track, or a WebSocket.</p>
+<h4>rtcSetXCallback</h4>
+<p>These functions set, change, or unset (if <code>cb</code> is <code>NULL</code>) the different callbacks of a channel identified by the argument <code>id</code>.</p>
+<div class="highlight"><pre><span></span><code>int rtcSetOpenCallback(int id, rtcOpenCallbackFunc cb)
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myOpenCallback(int id, void *user_ptr)</code></p>
+<p>It is called when the channel was previously connecting and is now open.</p>
+<div class="highlight"><pre><span></span><code>int rtcSetClosedCallback(int id, rtcClosedCallbackFunc cb)
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myClosedCallback(int id, void *user_ptr)</code></p>
+<p>It is called when the channel was previously open and is now closed.</p>
+<div class="highlight"><pre><span></span><code>int rtcSetErrorCallback(int id, rtcErrorCallbackFunc cb)
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myErrorCallback(int id, const char *error, void *user_ptr)</code></p>
+<p>It is called when the channel experience an error, either while connecting or open.</p>
+<div class="highlight"><pre><span></span><code>int rtcSetMessageCallback(int id, rtcMessageCallbackFunc cb)
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myMessageCallback(int id, const char *message, int size, void *user_ptr)</code></p>
+<p>It is called when the channel receives a message. While it is set, messages can't be received with <code>rtcReceiveMessage</code>.</p>
+<p>Track: By default, the track receives data as RTP packets.</p>
+<div class="highlight"><pre><span></span><code>int rtcSetBufferedAmountLowCallback(int id, rtcBufferedAmountLowCallbackFunc cb)
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myBufferedAmountLowCallback(int id, void *user_ptr)</code></p>
+<p>It is called when the buffered amount was strictly higher than the threshold (see <code>rtcSetBufferedAmountLowThreshold</code>) and is now lower or equal than the threshold.</p>
+<div class="highlight"><pre><span></span><code>int rtcSetAvailableCallback(int id, rtcAvailableCallbackFunc cb)
+</code></pre></div>
+
+<p><code>cb</code> must have the following signature: <code>void myAvailableCallback(int id, void *user_ptr)</code></p>
+<p>It is called when messages are now available to be received with <code>rtcReceiveMessage</code>.</p>
+<h4>rtcSendMessage</h4>
+<div class="highlight"><pre><span></span><code><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcSendMessage</span><span class="p">(</span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">size</span><span class="p">)</span>
+</code></pre></div>
+
+<p>Sends a message in the channel.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the channel identifier</li>
+<li><code>data</code>: the message data</li>
+<li><code>size</code>: if size &gt;= 0, <code>data</code> is interpreted as a binary message of length <code>size</code>, otherwise it is interpreted as a null-terminated UTF-8 string.</li>
+</ul>
+<p>Return value: <code>RTC_ERR_SUCCESS</code> or a negative error code</p>
+<p>The message is sent immediately if possible, otherwise it is buffered to be sent later.</p>
+<p>Data Channel and WebSocket: If the message may not be sent immediately due to flow control or congestion control, it is buffered until it can actually be sent. You can retrieve the current buffered data size with <code>rtcGetBufferedAmount</code>.</p>
+<p>Track: By default, the track expects RTP packets. There is no flow or congestion control, packets are never buffered and <code>rtcGetBufferedAmount</code> always returns 0.</p>
+<h4>rtcClose</h4>
+<div class="highlight"><pre><span></span><code>int rtcClose(int id)
+</code></pre></div>
+
+<p>Close the channel.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the channel identifier</li>
+</ul>
+<p>Return value: <code>RTC_ERR_SUCCESS</code> or a negative error code</p>
+<p>WebSocket: Like with the JavaScript API, the state will first change to closing, then closed only after the connection has been actually closed.</p>
+<h4>rtcDelete</h4>
+<div class="highlight"><pre><span></span><code>int rtcDelete(int id)
+</code></pre></div>
+
+<p>Deletes the channel.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the channel identifier</li>
+</ul>
+<p>Return value: <code>RTC_ERR_SUCCESS</code> or a negative error code</p>
+<p>If it is not already closed, the channel is implicitly closed before being deleted. After this function has been called, <code>id</code> must not be used in a function call anymore. This function will block until all scheduled callbacks of <code>id</code> return (except the one this function might be called in) and no other callback will be called for <code>id</code> after it returns.</p>
+<h4>rtcIsOpen</h4>
+<div class="highlight"><pre><span></span><code>bool rtcIsOpen(int id)
+</code></pre></div>
+
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the channel identifier</li>
+</ul>
+<p>Return value: <code>true</code> if the channel exists and is open, <code>false</code> otherwise</p>
+<h4>rtcIsClosed</h4>
+<div class="highlight"><pre><span></span><code>bool rtcIsClosed(int id)
+</code></pre></div>
+
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the channel identifier</li>
+</ul>
+<p>Return value: <code>true</code> if the channel exists and is closed (not open and not connecting), <code>false</code> otherwise</p>
+<h4>rtcGetMaxMessageSize</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetMaxMessageSize(int id)
+</code></pre></div>
+
+<p>Retrieves the maximum message size for the channel.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the channel identifier</li>
+</ul>
+<p>Return value: the maximum message size or a negative error code</p>
+<h4>rtcGetBufferedAmount</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetBufferedAmount(int id)
+</code></pre></div>
+
+<p>Retrieves the current buffered amount, i.e. the total size of currently buffered messages waiting to be actually sent in the channel. This does not account for the data buffered at the transport level.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the channel identifier</li>
+</ul>
+<p>Return value: the buffered amount or a negative error code</p>
+<h4>rtcSetBufferedAmountLowThreshold</h4>
+<div class="highlight"><pre><span></span><code>int rtcSetBufferedAmountLowThreshold(int id, int amount)
+</code></pre></div>
+
+<p>Changes the buffered amount threshold under which <code>BufferedAmountLowCallback</code> is called. The callback is called when the buffered amount was strictly superior and gets equal to or lower than the threshold when a message is sent. The initial threshold is 0, meaning the the callback is called each time the buffered amount goes back to zero after being non-zero.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the channel identifier</li>
+<li><code>amount</code>: the new buffer level threshold</li>
+</ul>
+<p>Return value: <code>RTC_ERR_SUCCESS</code> or a negative error code</p>
+<h4>rtcReceiveMessage</h4>
+<div class="highlight"><pre><span></span><code>int rtcReceiveMessage(int id, char *buffer, int *size)
+</code></pre></div>
+
+<p>Receives a pending message if possible. The function may only be called if <code>MessageCallback</code> is not set.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the channel identifier</li>
+<li><code>buffer</code>: a user-supplied buffer where to write the message data</li>
+<li><code>size</code>: a pointer to a user-supplied int which must be initialized to the size of <code>buffer</code>. On success, the function will write the size of the message to it before returning (positive size if binary, negative size including terminating 0 if string).</li>
+</ul>
+<p>Return value: <code>RTC_ERR_SUCCESS</code> or a negative error code (In particular, <code>RTC_ERR_NOT_AVAIL</code> is returned when there are no pending messages)</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the message is not copied and kept pending but the size is still written to <code>size</code>.</p>
+<p>Track: By default, the track receives data as RTP packets.</p>
+<h4>rtcGetAvailableAmount</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetAvailableAmount(int id)
+</code></pre></div>
+
+<p>Retrieves the available amount, i.e. the total size of messages pending reception with <code>rtcReceiveMessage</code>. The function may only be called if <code>MessageCallback</code> is not set.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>id</code>: the channel identifier</li>
+</ul>
+<p>Return value: the available amount or a negative error code</p>
+<h3>Data Channel</h3>
+<h4>rtcCreateDataChannel</h4>
+<div class="highlight"><pre><span></span><code><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcCreateDataChannel</span><span class="p">(</span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">pc</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">)</span>
+<span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcCreateDataChannelEx</span><span class="p">(</span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">pc</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">rtcDataChannelInit</span><span class="w"> </span><span class="o">*</span><span class="n">init</span><span class="p">)</span>
+
+<span class="n">typedef</span><span class="w"> </span><span class="n">struct</span><span class="w"> </span><span class="p">{</span>
+<span class="w">  </span><span class="nb nb-Type">bool</span><span class="w"> </span><span class="n">unordered</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">bool</span><span class="w"> </span><span class="n">unreliable</span><span class="p">;</span>
+<span class="w">  </span><span class="n">unsigned</span><span class="w"> </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">maxPacketLifeTime</span><span class="p">;</span>
+<span class="w">  </span><span class="n">unsigned</span><span class="w"> </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">maxRetransmits</span><span class="p">;</span>
+<span class="p">}</span><span class="w"> </span><span class="n">rtcReliability</span><span class="p">;</span>
+
+<span class="n">typedef</span><span class="w"> </span><span class="n">struct</span><span class="w"> </span><span class="p">{</span>
+<span class="w">  </span><span class="n">rtcReliability</span><span class="w"> </span><span class="n">reliability</span><span class="p">;</span>
+<span class="w">  </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">protocol</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">bool</span><span class="w"> </span><span class="n">negotiated</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">bool</span><span class="w"> </span><span class="n">manualStream</span><span class="p">;</span>
+<span class="w">  </span><span class="n">uint16_t</span><span class="w"> </span><span class="n">stream</span><span class="p">;</span>
+<span class="p">}</span><span class="w"> </span><span class="n">rtcDataChannelInit</span><span class="p">;</span>
+</code></pre></div>
+
+<p>Adds a Data Channel on a Peer Connection. The Peer Connection does not need to be connected, however, the Data Channel will be open only when the Peer Connection is connected.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: identifier of the PeerConnection on which to add a Data Channel</li>
+<li><code>label</code>: a user-defined UTF-8 string representing the Data Channel name</li>
+<li><code>init</code>: a structure of initialization settings containing:<ul>
+<li><code>reliability</code>: a structure of reliability settings containing:<ul>
+<li><code>unordered</code>: if <code>true</code>, the Data Channel will not enforce message ordering, else it will be ordered</li>
+<li><code>unreliable</code>: if <code>true</code>, the Data Channel will not enforce strict reliability, else it will be reliable</li>
+<li><code>maxPacketLifeTime</code>: if unreliable, time window in milliseconds during which transmissions and retransmissions may occur</li>
+<li><code>maxRetransmits</code>: if unreliable and maxPacketLifeTime is 0, maximum number of attempted retransmissions (0 means no retransmission)</li>
+</ul>
+</li>
+<li><code>protocol</code> (optional): a user-defined UTF-8 string representing the Data Channel protocol, empty if NULL</li>
+<li><code>negotiated</code>: if <code>true</code>, the Data Channel is assumed to be negotiated by the user and won't be negotiated by the WebRTC layer</li>
+<li><code>manualStream</code>: if <code>true</code>, the Data Channel will use <code>stream</code> as stream ID, else an available id is automatically selected</li>
+<li><code>stream</code>: if <code>manualStream</code> is <code>true</code>, the Data Channel will use it as stream ID, else it is ignored</li>
+</ul>
+</li>
+</ul>
+<p><code>rtcDataChannel()</code> is equivalent to <code>rtcDataChannelEx()</code> with settings set to ordered, reliable, non-negotiated, with automatic stream ID selection (all flags set to <code>false</code>), and <code>protocol</code> set to an empty string.</p>
+<p>Return value: the identifier of the new Data Channel or a negative error code.</p>
+<p>The Data Channel must be deleted with <code>rtcDeleteDataChannel</code> (or <code>rtcDelete</code>).</p>
+<p>If <code>disableAutoNegotiation</code> was not set in <code>rtcConfiguration</code>, the library will automatically initiate the negotiation by calling <code>rtcSetLocalDescription</code> internally. Otherwise, the user must call <code>rtcSetLocalDescription</code> to initiate the negotiation after creating the first Data Channel.</p>
+<h4>rtcDeleteDataChannel</h4>
+<div class="highlight"><pre><span></span><code>int rtcDeleteDataChannel(int dc)
+</code></pre></div>
+
+<p>Deletes a Data Channel.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>dc</code>: the Data Channel identifier</li>
+</ul>
+<p>After this function has been called, <code>dc</code> must not be used in a function call anymore. This function will block until all scheduled callbacks of <code>dc</code> return (except the one this function might be called in) and no other callback will be called for <code>dc</code> after it returns.</p>
+<h4>rtcGetDataChannelStream</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetDataChannelStream(int dc)
+</code></pre></div>
+
+<p>Retrieves the stream ID of the Data Channel.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>dc</code>: the Data Channel identifier</li>
+</ul>
+<p>Return value: the stream ID or a negative error code</p>
+<h4>rtcGetDataChannelLabel</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetDataChannelLabel(int dc, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the label of a Data Channel.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>dc</code>: the Data Channel identifier</li>
+<li><code>buffer</code>: a user-supplied buffer to store the label</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the label is not copied but the size is still returned.</p>
+<h4>rtcGetDataChannelProtocol</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetDataChannelProtocol(int dc, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the protocol of a Data Channel.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>dc</code>: the Data Channel identifier</li>
+<li><code>buffer</code>: a user-supplied buffer to store the protocol</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the protocol is not copied but the size is still returned.</p>
+<h4>rtcGetDataChannelReliability</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetDataChannelReliability(int dc, rtcReliability *reliability)
+</code></pre></div>
+
+<p>Retrieves the reliability settings of a Data Channel. The function may be called irrelevant of how the Data Channel was created.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>dc</code>: the Data Channel identifier</li>
+<li><code>reliability</code> a user-supplied structure to fill</li>
+</ul>
+<p>Return value: <code>RTC_ERR_SUCCESS</code> or a negative error code</p>
+<h3>Track</h3>
+<h4>rtcAddTrack</h4>
+<div class="highlight"><pre><span></span><code><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcAddTrack</span><span class="p">(</span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">pc</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">mediaDescriptionSdp</span><span class="p">)</span>
+</code></pre></div>
+
+<p>Adds a new Track on a Peer Connection. The Peer Connection does not need to be connected, however, the Track will be open only when the Peer Connection is connected.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>pc</code>: the Peer Connection identifier</li>
+<li><code>mediaDescriptionSdp</code>: a null-terminated string specifying the corresponding media SDP. It must start with a m-line and include a mid parameter.</li>
+</ul>
+<p>Return value: the identifier of the new Track or a negative error code</p>
+<p>The new track must be deleted with <code>rtcDeleteTrack</code> (or <code>rtcDelete</code>).</p>
+<p>The user must call <code>rtcSetLocalDescription</code> to negotiate the track.</p>
+<h4>rtcDeleteTrack</h4>
+<div class="highlight"><pre><span></span><code>int rtcDeleteTrack(int tr)
+</code></pre></div>
+
+<p>Deletes a Track.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>tr</code>: the Track identifier</li>
+</ul>
+<p>After this function has been called, <code>tr</code> must not be used in a function call anymore. This function will block until all scheduled callbacks of <code>tr</code> return (except the one this function might be called in) and no other callback will be called for <code>tr</code> after it returns.</p>
+<h4>rtcGetTrackDescription</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetTrackDescription(int tr, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the SDP media description of a Track.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>tr</code>: the Track identifier</li>
+<li><code>buffer</code>: a user-supplied buffer to store the description</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the description is not copied but the size is still returned.</p>
+<h4>rtcGetTrackMid</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetTrackMid(int tr, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the mid (media indentifier) of a Track.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>tr</code>: the Track identifier</li>
+<li><code>buffer</code>: a user-supplied buffer to store the mid</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the mid is not copied but the size is still returned.</p>
+<h4>rtcGetTrackDirection</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetTrackDirection(int tr, rtcDirection *direction)
+</code></pre></div>
+
+<p>Retrieves the direction of a Track.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>tr</code>: the Track identifier</li>
+<li><code>direction</code>: a pointer to a rtcDescription enum to store the result</li>
+</ul>
+<p>On success, the value pointed by <code>direction</code> will be set to one of the following: <code>RTC_DIRECTION_SENDONLY</code>, <code>RTC_DIRECTION_RECVONLY</code>, <code>RTC_DIRECTION_SENDRECV</code>, <code>RTC_DIRECTION_INACTIVE</code>, or <code>RTC_DIRECTION_UNKNOWN</code>.</p>
+<h3>Media handling</h3>
+<p>TODO</p>
+<h3>WebSocket</h3>
+<h4>rtcCreateWebSocket</h4>
+<div class="highlight"><pre><span></span><code><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcCreateWebSocket</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">url</span><span class="p">)</span>
+<span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcCreateWebSocketEx</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">url</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">rtcWsConfiguration</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">)</span>
+
+<span class="n">typedef</span><span class="w"> </span><span class="n">struct</span><span class="w"> </span><span class="p">{</span>
+<span class="w">  </span><span class="nb nb-Type">bool</span><span class="w"> </span><span class="n">disableTlsVerification</span><span class="p">;</span>
+<span class="w">  </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">**</span><span class="n">protocols</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">protocolsCount</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">connectionTimeoutMs</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">pingIntervalMs</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">maxOutstandingPings</span><span class="p">;</span>
+<span class="p">}</span><span class="w"> </span><span class="n">rtcWsConfiguration</span><span class="p">;</span>
+</code></pre></div>
+
+<p>Creates a new client WebSocket.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>url</code>: a null-terminated string representing the fully-qualified URL to open.</li>
+<li><code>config</code>: a structure with the following parameters:<ul>
+<li><code>disableTlsVerification</code>: if true, don't verify the TLS certificate, else try to verify it if possible</li>
+<li><code>protocols</code> (optional): an array of pointers on null-terminated protocol names (NULL if unused)</li>
+<li><code>protocolsCount</code> (optional): number of URLs in the array pointed by <code>protocols</code> (0 if unused)</li>
+<li><code>connectionTimeoutMs</code> (optional): connection timeout in milliseconds (0 if default, &lt; 0 if disabled)</li>
+<li><code>pingIntervalMs</code> (optional): ping interval in milliseconds (0 if default, &lt; 0 if disabled)</li>
+<li><code>maxOutstandingPings</code> (optional): number of unanswered pings before declaring failure (0 if default, &lt; 0 if disabled)</li>
+</ul>
+</li>
+</ul>
+<p>Return value: the identifier of the new WebSocket or a negative error code</p>
+<p>The new WebSocket must be deleted with <code>rtcDeleteWebSocket</code> (or <code>rtcDelete</code>). The scheme of the URL must be either <code>ws</code> or <code>wss</code>.</p>
+<h4>rtcDeleteWebSocket</h4>
+<div class="highlight"><pre><span></span><code>int rtcDeleteWebSocket(int ws)
+</code></pre></div>
+
+<p>Arguments:</p>
+<ul>
+<li><code>ws</code>: the identifier of the WebSocket to delete</li>
+</ul>
+<p>After this function has been called, <code>ws</code> must not be used in a function call anymore. This function will block until all scheduled callbacks of <code>ws</code> return (except the one this function might be called in) and no other callback will be called for <code>ws</code> after it returns.</p>
+<h4>rtcGetWebSocketRemoteAddress</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetWebSocketRemoteAddress(int ws, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the remote address, i.e. the network address of the remote endpoint. The address will have the format <code>"HOST:PORT"</code>. The call may fail if the underlying TCP transport of the WebSocket is not connected. This function is useful for a client WebSocket received by a WebSocket Server.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>ws</code>: the identifier of the WebSocket</li>
+<li><code>buffer</code>: a user-supplied buffer to store the description</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the address is not copied but the size is still returned.</p>
+<h4>rtcGetWebSocketPath</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetWebSocketPath(int ws, char *buffer, int size)
+</code></pre></div>
+
+<p>Retrieves the path of the WebSocket, i.e. the HTTP requested path. This function is useful for a client WebSocket received by a WebSocket Server. Warning: The WebSocket must be open for the call to succeed.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>ws</code>: the identifier of the WebSocket</li>
+<li><code>buffer</code>: a user-supplied buffer to store the description</li>
+<li><code>size</code>: the size of <code>buffer</code></li>
+</ul>
+<p>Return value: the length of the string copied in buffer (including the terminating null character) or a negative error code</p>
+<p>If <code>buffer</code> is <code>NULL</code>, the path is not copied but the size is still returned.</p>
+<h3>WebSocket Server</h3>
+<h4>rtcCreateWebSocketServer</h4>
+<div class="highlight"><pre><span></span><code><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">rtcCreateWebSocketServer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">rtcWsServerConfiguration</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">,</span><span class="w"> </span><span class="n">rtcWebSocketClientCallbackFunc</span><span class="w"> </span><span class="n">cb</span><span class="p">);</span>
+
+<span class="n">typedef</span><span class="w"> </span><span class="n">struct</span><span class="w"> </span><span class="p">{</span>
+<span class="w">  </span><span class="n">uint16_t</span><span class="w"> </span><span class="n">port</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">bool</span><span class="w"> </span><span class="n">enableTls</span><span class="p">;</span>
+<span class="w">  </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">certificatePemFile</span><span class="p">;</span>
+<span class="w">  </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">keyPemFile</span><span class="p">;</span>
+<span class="w">  </span><span class="k">const</span><span class="w"> </span><span class="nb">char</span><span class="w"> </span><span class="o">*</span><span class="n">keyPemPass</span><span class="p">;</span>
+<span class="w">  </span><span class="nb nb-Type">int</span><span class="w"> </span><span class="n">connectionTimeoutMs</span><span class="p">;</span>
+<span class="p">}</span><span class="w"> </span><span class="n">rtcWsServerConfiguration</span><span class="p">;</span>
+</code></pre></div>
+
+<p>Creates a new WebSocket server.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>config</code>: a structure with the following parameters:<ul>
+<li><code>port</code>: the port to listen on (if 0, automatically select an available port)</li>
+<li><code>enableTls</code>: if true, enable the TLS layer (WSS)</li>
+<li><code>certificatePemFile</code> (optional): PEM certificate or path of the file containing the PEM certificate (<code>NULL</code> for an autogenerated certificate)</li>
+<li><code>keyPemFile</code> (optional): PEM key or path of the file containing the PEM key (<code>NULL</code> for an autogenerated certificate)</li>
+<li><code>keyPemPass</code> (optional): PEM key file passphrase (NULL if no passphrase)</li>
+<li><code>connectionTimeoutMs</code> (optional): connection timeout in milliseconds (0 if default, &lt; 0 if disabled)</li>
+</ul>
+</li>
+<li><code>cb</code>: the callback for incoming client WebSocket connections (must not be <code>NULL</code>)</li>
+</ul>
+<p><code>cb</code> must have the following signature: <code>void rtcWebSocketClientCallbackFunc(int wsserver, int ws, void *user_ptr)</code></p>
+<p>Return value: the identifier of the new WebSocket Server or a negative error code</p>
+<p>The new WebSocket Server must be deleted with <code>rtcDeleteWebSocketServer</code>.</p>
+<h4>rtcDeleteWebSocketServer</h4>
+<div class="highlight"><pre><span></span><code>int rtcDeleteWebSocketServer(int wsserver)
+</code></pre></div>
+
+<p>Arguments:</p>
+<ul>
+<li><code>wsserver</code>: the identifier of the WebSocket Server to delete</li>
+</ul>
+<p>After this function has been called, <code>wsserver</code> must not be used in a function call anymore. This function will block until all scheduled callbacks of <code>wsserver</code> return (except the one this function might be called in) and no other callback will be called for <code>wsserver</code> after it returns.</p>
+<h4>rtcGetWebSocketServerPort</h4>
+<div class="highlight"><pre><span></span><code>int rtcGetWebSocketServerPort(int wsserver);
+</code></pre></div>
+
+<p>Retrieves the port which the WebSocket Server is listening on.</p>
+<p>Arguments:</p>
+<ul>
+<li><code>wsserver</code>: the identifier of the WebSocket Server</li>
+</ul>
+<p>Return value: The port of the WebSocket Server or a negative error code</p>
+      </div>
+      <div class="back-to-top">
+          <a href="#top">back to top</a>
+      </div>
+    </article>
+  </div>
+<!-- end article -->
+                <footer>
+                    <p>© 2021 Paul-Louis Ageneau</p>
+                </footer>
+        </div>
+</body>
+</html>

+ 42 - 0
tags.html

@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+        <title>libdatachannel - Tags</title>
+        <meta name="viewport" content="width=device-width, initial-scale=1">
+        <meta charset="utf-8">
+        <link href="https://libdatachannel.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="libdatachannel Full Atom Feed">
+        <!-- twitter card metadata -->
+        <!-- OG Tags -->
+        <!-- favicon -->
+        <!-- css -->
+        <link rel="stylesheet" type="text/css" href="https://libdatachannel.org/theme/css/main.css">
+        <link rel="stylesheet" type="text/css" href="https://libdatachannel.org/theme/css/pygments-highlight.css">
+</head>
+<body>
+<a href="https://github.com/paullouisageneau/libdatachannel">
+<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://libdatachannel.org/images/forkme_right_gray_6d6d6d.svg" alt="Fork me on GitHub" />
+</a>
+    <div role="banner" id="banner">
+        <header>
+            <nav id="menu">
+                <ul>
+                        <li><a href="https://libdatachannel.org/">libdatachannel</a></li>
+                        <li><a href="https://libdatachannel.org/pages/reference.html">reference</a></li>
+                </ul>
+            </nav>
+        </header>
+    </div>
+        <div class="page" role="main">
+<div class="page-title">
+        <h1>tags</h1>
+</div>
+<div class="articles">
+    <ul>
+    </ul>
+</div>
+                <footer>
+                    <p>© 2021 Paul-Louis Ageneau</p>
+                </footer>
+        </div>
+</body>
+</html>

+ 282 - 0
theme/css/main.css

@@ -0,0 +1,282 @@
+@charset "UTF-8";
+
+@viewport {
+  width: device-width;
+}
+
+/* html5doctor.com/html-5-reset-stylesheet/ */
+/* http://meyerweb.com/eric/tools/css/reset/ */
+html, body, div, span, object, iframe, h1, h2,
+h3, h4, h5, h6, p, blockquote, pre, abbr, address,
+cite, code, del, dfn, em, img, ins, kbd, q, samp, small,
+strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset,
+form, label, legend, table, caption, tbody, tfoot, thead, tr,
+th, td, time, mark, audio, video {
+  margin: 0;
+  padding: 0;
+  border: 0;
+  outline: 0;
+  font-size: 100%;
+  vertical-align: baseline;
+  background: transparent;
+}
+
+* {
+  box-sizing: border-box;
+}
+
+body {
+  font-family: Helvetica, sans-serif;
+  font-size: 11pt;
+  line-height: 1.5em;
+  font-smooth: antialiased;
+  text-rendering: optimizeLegibility;
+  color: #000000;
+}
+div, section, article, header, footer, nav, aside, hgroup {
+  display: block;
+}
+ol, ul {
+  list-style: none;
+}
+table {
+  border-collapse: collapse;
+  border-spacing: 0;
+}
+footer {
+  margin-bottom: 2em;
+  margin-top: 1em;
+  color: #888888;
+}
+a {
+  text-decoration: underline;
+}
+
+#menu {
+	margin: 1em;
+	margin-top: 2em;
+	font-size: 1.2em;
+	font-weight: bold;
+}
+#menu ul {
+	display: block;
+	text-align: center;
+}
+#menu li {
+	display: inline-block;
+	margin-left: 0.5em;
+	margin-right: 0.5em;
+}
+.page {
+  max-width: 70em;
+  margin: auto;
+  text-align: center;
+  line-height: 1.5;
+}
+.articles {
+  text-align: left;
+  padding: 1.5em;
+}
+.articles ol li {
+  padding-bottom: 4em;
+  padding-top: 1em;
+}
+.article article {
+  display: inline-block;
+  width: 100%;
+  padding: 0.5em;
+  text-align: left;
+  line-height: 1.5;
+}
+.articles article footer {
+  padding-bottom: 0.25em;
+  margin-bottom: 0;
+  margin-top: 0;
+}
+.article article footer p {
+  text-align: center;
+}
+.articles article header {
+  padding-bottom: 1em;
+}
+.articles article header a {
+  text-decoration: none;
+}
+.articles article .summary {
+  padding-bottom: 1em;
+  font-size: 1.125em;
+}
+.articles article .readmore {
+  color: #39739d;
+  float: right;
+  text-decoration: underline;
+}
+.articles article .tags {
+  list-style: none;
+  margin: 0;
+  overflow: hidden;
+  padding: 0;
+}
+.articles article .tags li {
+  float: left;
+  padding: 0;
+}
+.article img {
+  max-width: 100%;
+  display: block;
+  margin-left: auto;
+  margin-right: auto;
+}
+.article article header h1 {
+  font-size: 2em;
+  padding-bottom: 1em;
+  font-weight: bold;
+  text-align: center;
+}
+.article article .content p {
+  padding-bottom: 0.5em;
+}
+.article article .content h1 {
+  font-size: 2em;
+  padding-bottom: 1em;
+  padding-top: 2em;
+  font-weight: bold;
+}
+.article article .content h2 {
+  font-size: 1.4em;
+  padding-bottom: 0.75em;
+  padding-top: 1.5em;
+  font-weight: bold;
+}
+.article article .content h3 {
+  font-size: 1.2em;
+  padding-bottom: 0.75em;
+  padding-top: 1.5em;
+  font-weight: bold;
+}
+.article article .content h4 {
+  font-size: 1em;
+  padding-bottom: 1.25em;
+  padding-top: 1em;
+  font-weight: bold;
+}
+.article article .content ul, .article article .content ol {
+  margin: 0 auto;
+  line-height: 1.5;
+  padding-left: 2em;
+  padding-bottom: 1em;
+}
+.article article .content ul {
+  list-style-type: square;
+}
+.article article .content ol {
+  list-style-type: decimal;
+}
+.article article .content em {
+  font-style: italic;
+  font-size: 0.8em;
+}
+.article article .content .highlight {
+  margin-bottom: 1.5em;
+}
+.article article .content pre {
+  padding-bottom: 1.75em;
+  padding-top: 1em;
+  display: block;
+  background-color: #f5f5f5;
+  border: 1px solid #000000;
+  border-radius: 0.25em;
+  padding: 0.5em;
+  white-space: pre-wrap;
+  word-wrap: break-word;
+}
+.article article .content span.nv {
+  color: #c65d09;
+  font-weight: bold;
+}
+.article article .content .embedded-tweet {
+  margin-top: 1em;
+  margin-bottom: 2em;
+}
+.back-to-top {
+  text-align: center;
+  margin-top: 4em;
+}
+.tag {
+  background: #E1ECF4;
+  border-radius: 3px;
+  color: #39739d;
+  display: inline-block;
+  height: 2em;
+  line-height: 2em;
+  padding: 0 1em;
+  position: relative;
+  margin: 0 1em 1em 0;
+  text-decoration: none;
+}
+.tag:hover {
+  background-color: crimson;
+  color: white;
+}
+.tag:hover::after {
+  border-left-color: crimson;
+}
+.category-tag {
+  font-style: italic;
+  color: #39739d;
+  text-decoration: underline;
+}
+.paginator {
+  font-size: 3em;
+  text-align: center;
+}
+.paginator span {
+  font-size: 0.5em;
+}
+.paginator a.previous {
+  float: lefdantont;
+}
+.paginator a.next {
+  float: right;
+}
+img.emoji {
+  margin: 0;
+  vertical-align: -0.3em;
+  display: inline;
+  padding-right: 0.5em;
+}
+
+#home p {
+  padding-bottom: 0.5em;
+}
+#home section {
+	clear: both;
+}
+#home section img {
+  float: left;
+  margin: 0.75em;
+  margin-right: 2em;
+  width: 10em;
+  max-width: 30%;
+}
+
+.social {
+	text-align: center;
+}
+.social img {
+	display: inline-block;
+	margin-left: 0.5em;
+	margin-right: 0.5em;
+	width: 4em;
+}
+
+.sponsor {
+	clear: both;
+	text-align: center;
+	margin: 0.25em;
+}
+.sponsor * {
+	display: inline-block;
+	vertical-align: middle;
+}
+

+ 62 - 0
theme/css/pygments-highlight.css

@@ -0,0 +1,62 @@
+.highlight .hll { background-color: #f4f4cc }
+.highlight  { background: #f4f4f4; }
+.highlight .c { color: #808080 } /* Comment */
+.highlight .err { color: #F00000; background-color: #F0A0A0 } /* Error */
+.highlight .k { color: #008000; font-weight: bold } /* Keyword */
+.highlight .o { color: #303030 } /* Operator */
+.highlight .cm { color: #808080 } /* Comment.Multiline */
+.highlight .cp { color: #507090 } /* Comment.Preproc */
+.highlight .c1 { color: #808080 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #808080 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0040D0 } /* Generic.Traceback */
+.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003080; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #303090; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6000E0; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000C0 } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #B00060; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003060; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #505050; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #800000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #F00000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0060B0; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #907000; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007000 } /* Name.Tag */
+.highlight .nv { color: #906030 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000D0; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0040D0 } /* Literal.String.Char */
+.highlight .sd { color: #D04020 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #606060; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #e0e0e0 } /* Literal.String.Interpol */
+.highlight .sx { color: #D02000; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #A06000 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #306090 } /* Name.Variable.Class */
+.highlight .vg { color: #d07000; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3030B0 } /* Name.Variable.Instance */
+.highlight .il { color: #0000D0; font-weight: bold } /* Literal.Number.Integer.Long */