mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
Added optional MTU setting in configuration
This commit is contained in:
@ -40,11 +40,13 @@ size_t benchmark(milliseconds duration) {
|
||||
|
||||
Configuration config1;
|
||||
// config1.iceServers.emplace_back("stun:stun.l.google.com:19302");
|
||||
// config1.mtu = 1500;
|
||||
|
||||
auto pc1 = std::make_shared<PeerConnection>(config1);
|
||||
|
||||
Configuration config2;
|
||||
// config2.iceServers.emplace_back("stun:stun.l.google.com:19302");
|
||||
// config2.mtu = 1500;
|
||||
|
||||
auto pc2 = std::make_shared<PeerConnection>(config2);
|
||||
|
||||
|
@ -36,6 +36,8 @@ void test_connectivity() {
|
||||
// STUN server example (not necessary to connect locally)
|
||||
// Please do not use outside of libdatachannel tests
|
||||
config1.iceServers.emplace_back("stun:stun.ageneau.net:3478");
|
||||
// Custom MTU example
|
||||
config1.mtu = 1500;
|
||||
|
||||
auto pc1 = std::make_shared<PeerConnection>(config1);
|
||||
|
||||
@ -43,6 +45,8 @@ void test_connectivity() {
|
||||
// STUN server example (not necessary to connect locally)
|
||||
// Please do not use outside of libdatachannel tests
|
||||
config2.iceServers.emplace_back("stun:stun.ageneau.net:3478");
|
||||
// Custom MTU example
|
||||
config2.mtu = 1500;
|
||||
// Port range example
|
||||
config2.portRangeBegin = 5000;
|
||||
config2.portRangeEnd = 6000;
|
||||
|
Reference in New Issue
Block a user