mediasoup 3.20.1 → 3.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node/lib/DataConsumer.d.ts +2 -3
- package/node/lib/DataConsumer.d.ts.map +1 -1
- package/node/lib/DataConsumer.js +8 -6
- package/node/lib/DataConsumerTypes.d.ts +5 -4
- package/node/lib/DataConsumerTypes.d.ts.map +1 -1
- package/node/lib/fbs/data-consumer/send-response.d.ts +21 -0
- package/node/lib/fbs/data-consumer/send-response.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/send-response.js +91 -0
- package/node/lib/fbs/data-consumer.d.ts +1 -0
- package/node/lib/fbs/data-consumer.d.ts.map +1 -1
- package/node/lib/fbs/data-consumer.js +4 -1
- package/node/lib/fbs/response/body.d.ts +7 -5
- package/node/lib/fbs/response/body.d.ts.map +1 -1
- package/node/lib/fbs/response/body.js +7 -3
- package/node/lib/fbs/response/response.d.ts +3 -2
- package/node/lib/fbs/response/response.d.ts.map +1 -1
- package/node/lib/test/test-DataConsumer.js +6 -0
- package/node/lib/test/test-werift-sctp.js +7 -0
- package/package.json +4 -4
- package/worker/Makefile +5 -1
- package/worker/fbs/dataConsumer.fbs +4 -0
- package/worker/fbs/response.fbs +1 -0
- package/worker/include/RTC/PortManager.hpp +91 -11
- package/worker/include/RTC/TcpServer.hpp +3 -2
- package/worker/include/RTC/UdpSocket.hpp +3 -2
- package/worker/meson.build +1 -0
- package/worker/src/RTC/DataConsumer.cpp +12 -2
- package/worker/src/RTC/PipeTransport.cpp +5 -4
- package/worker/src/RTC/PlainTransport.cpp +9 -8
- package/worker/src/RTC/PortManager.cpp +174 -114
- package/worker/src/RTC/SCTP/association/Association.cpp +17 -14
- package/worker/src/RTC/TcpServer.cpp +4 -4
- package/worker/src/RTC/Transport.cpp +33 -10
- package/worker/src/RTC/UdpSocket.cpp +4 -4
- package/worker/src/RTC/WebRtcServer.cpp +8 -8
- package/worker/src/RTC/WebRtcTransport.cpp +9 -8
- package/worker/tasks.py +293 -196
- package/worker/test/src/RTC/TestNackGenerator.cpp +1 -1
- package/worker/test/src/RTC/TestPortManager.cpp +126 -0
- package/worker/test/src/RTC/TestTransportTuple.cpp +3 -2
|
@@ -96,7 +96,7 @@ namespace RTC
|
|
|
96
96
|
|
|
97
97
|
if (listenInfo->portRange()->min() != 0 && listenInfo->portRange()->max() != 0)
|
|
98
98
|
{
|
|
99
|
-
|
|
99
|
+
RTC::PortManager::PortRangeKey portRangeKey{};
|
|
100
100
|
|
|
101
101
|
udpSocket = new RTC::UdpSocket(
|
|
102
102
|
this,
|
|
@@ -104,7 +104,7 @@ namespace RTC
|
|
|
104
104
|
listenInfo->portRange()->min(),
|
|
105
105
|
listenInfo->portRange()->max(),
|
|
106
106
|
flags,
|
|
107
|
-
|
|
107
|
+
portRangeKey);
|
|
108
108
|
}
|
|
109
109
|
else if (listenInfo->port() != 0)
|
|
110
110
|
{
|
|
@@ -115,7 +115,7 @@ namespace RTC
|
|
|
115
115
|
// required.
|
|
116
116
|
else
|
|
117
117
|
{
|
|
118
|
-
|
|
118
|
+
RTC::PortManager::PortRangeKey portRangeKey{};
|
|
119
119
|
|
|
120
120
|
udpSocket = new RTC::UdpSocket(
|
|
121
121
|
this,
|
|
@@ -123,7 +123,7 @@ namespace RTC
|
|
|
123
123
|
Settings::configuration.rtcMinPort,
|
|
124
124
|
Settings::configuration.rtcMaxPort,
|
|
125
125
|
flags,
|
|
126
|
-
|
|
126
|
+
portRangeKey);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
this->udpSocketOrTcpServers.emplace_back(
|
|
@@ -152,7 +152,7 @@ namespace RTC
|
|
|
152
152
|
|
|
153
153
|
if (listenInfo->portRange()->min() != 0 && listenInfo->portRange()->max() != 0)
|
|
154
154
|
{
|
|
155
|
-
|
|
155
|
+
RTC::PortManager::PortRangeKey portRangeKey{};
|
|
156
156
|
|
|
157
157
|
tcpServer = new RTC::TcpServer(
|
|
158
158
|
this,
|
|
@@ -161,7 +161,7 @@ namespace RTC
|
|
|
161
161
|
listenInfo->portRange()->min(),
|
|
162
162
|
listenInfo->portRange()->max(),
|
|
163
163
|
flags,
|
|
164
|
-
|
|
164
|
+
portRangeKey);
|
|
165
165
|
}
|
|
166
166
|
else if (listenInfo->port() != 0)
|
|
167
167
|
{
|
|
@@ -172,7 +172,7 @@ namespace RTC
|
|
|
172
172
|
// required.
|
|
173
173
|
else
|
|
174
174
|
{
|
|
175
|
-
|
|
175
|
+
RTC::PortManager::PortRangeKey portRangeKey{};
|
|
176
176
|
|
|
177
177
|
tcpServer = new RTC::TcpServer(
|
|
178
178
|
this,
|
|
@@ -181,7 +181,7 @@ namespace RTC
|
|
|
181
181
|
Settings::configuration.rtcMinPort,
|
|
182
182
|
Settings::configuration.rtcMaxPort,
|
|
183
183
|
flags,
|
|
184
|
-
|
|
184
|
+
portRangeKey);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
this->udpSocketOrTcpServers.emplace_back(
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
#include "FBS/webRtcTransport.h"
|
|
6
6
|
#include "Logger.hpp"
|
|
7
7
|
#include "MediaSoupErrors.hpp"
|
|
8
|
+
#include "RTC/PortManager.hpp"
|
|
8
9
|
#include "Settings.hpp"
|
|
9
10
|
#include "Utils.hpp"
|
|
10
11
|
#include <cmath> // std::pow()
|
|
@@ -81,7 +82,7 @@ namespace RTC
|
|
|
81
82
|
|
|
82
83
|
if (listenInfo->portRange()->min() != 0 && listenInfo->portRange()->max() != 0)
|
|
83
84
|
{
|
|
84
|
-
|
|
85
|
+
RTC::PortManager::PortRangeKey portRangeKey;
|
|
85
86
|
|
|
86
87
|
udpSocket = new RTC::UdpSocket(
|
|
87
88
|
this,
|
|
@@ -89,7 +90,7 @@ namespace RTC
|
|
|
89
90
|
listenInfo->portRange()->min(),
|
|
90
91
|
listenInfo->portRange()->max(),
|
|
91
92
|
flags,
|
|
92
|
-
|
|
93
|
+
portRangeKey);
|
|
93
94
|
}
|
|
94
95
|
else if (listenInfo->port() != 0)
|
|
95
96
|
{
|
|
@@ -100,7 +101,7 @@ namespace RTC
|
|
|
100
101
|
// required.
|
|
101
102
|
else
|
|
102
103
|
{
|
|
103
|
-
|
|
104
|
+
RTC::PortManager::PortRangeKey portRangeKey;
|
|
104
105
|
|
|
105
106
|
udpSocket = new RTC::UdpSocket(
|
|
106
107
|
this,
|
|
@@ -108,7 +109,7 @@ namespace RTC
|
|
|
108
109
|
Settings::configuration.rtcMinPort,
|
|
109
110
|
Settings::configuration.rtcMaxPort,
|
|
110
111
|
flags,
|
|
111
|
-
|
|
112
|
+
portRangeKey);
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
this->udpSockets[udpSocket] = announcedAddress;
|
|
@@ -151,7 +152,7 @@ namespace RTC
|
|
|
151
152
|
|
|
152
153
|
if (listenInfo->portRange()->min() != 0 && listenInfo->portRange()->max() != 0)
|
|
153
154
|
{
|
|
154
|
-
|
|
155
|
+
RTC::PortManager::PortRangeKey portRangeKey{};
|
|
155
156
|
|
|
156
157
|
tcpServer = new RTC::TcpServer(
|
|
157
158
|
this,
|
|
@@ -160,7 +161,7 @@ namespace RTC
|
|
|
160
161
|
listenInfo->portRange()->min(),
|
|
161
162
|
listenInfo->portRange()->max(),
|
|
162
163
|
flags,
|
|
163
|
-
|
|
164
|
+
portRangeKey);
|
|
164
165
|
}
|
|
165
166
|
else if (listenInfo->port() != 0)
|
|
166
167
|
{
|
|
@@ -171,7 +172,7 @@ namespace RTC
|
|
|
171
172
|
// required.
|
|
172
173
|
else
|
|
173
174
|
{
|
|
174
|
-
|
|
175
|
+
RTC::PortManager::PortRangeKey portRangeKey{};
|
|
175
176
|
|
|
176
177
|
tcpServer = new RTC::TcpServer(
|
|
177
178
|
this,
|
|
@@ -180,7 +181,7 @@ namespace RTC
|
|
|
180
181
|
Settings::configuration.rtcMinPort,
|
|
181
182
|
Settings::configuration.rtcMaxPort,
|
|
182
183
|
flags,
|
|
183
|
-
|
|
184
|
+
portRangeKey);
|
|
184
185
|
}
|
|
185
186
|
|
|
186
187
|
this->tcpServers[tcpServer] = announcedAddress;
|