Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
e1997532
提交
e1997532
authored
12月 28, 2015
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Work in IceTransport.
上级
f57ecf68
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
138 行增加
和
114 行删除
+138
-114
Transport.js
lib/Transport.js
+15
-0
ICETransport.h
worker/include/RTC/ICETransport.h
+4
-14
IceCandidate.h
worker/include/RTC/IceCandidate.h
+8
-63
Peer.h
worker/include/RTC/Peer.h
+4
-4
ICETransport.cpp
worker/src/RTC/ICETransport.cpp
+41
-29
IceCandidate.cpp
worker/src/RTC/IceCandidate.cpp
+62
-0
Peer.cpp
worker/src/RTC/Peer.cpp
+1
-1
Settings.cpp
worker/src/Settings.cpp
+3
-3
没有找到文件。
lib/Transport.js
浏览文件 @
e1997532
...
...
@@ -98,6 +98,21 @@ class Transport extends EventEmitter
throw
error
;
});
}
get
iceComponent
()
{
return
this
.
_data
.
iceComponent
;
}
getIceLocalParameters
()
{
return
this
.
_data
.
iceLocalParameters
;
}
getIceLocalCandidates
()
{
return
this
.
_data
.
iceLocalCandidates
;
}
}
module
.
exports
=
Transport
;
worker/include/RTC/ICETransport.h
浏览文件 @
e1997532
...
...
@@ -15,7 +15,7 @@
namespace
RTC
{
class
I
CE
Transport
:
class
I
ce
Transport
:
public
RTC
::
ICEServer
::
Listener
,
public
RTC
::
UDPSocket
::
Listener
,
public
RTC
::
TCPServer
::
Listener
,
...
...
@@ -43,15 +43,13 @@ namespace RTC
}
IceParameters
;
public
:
I
CE
Transport
(
Listener
*
listener
,
Json
::
Value
&
data
);
virtual
~
I
CE
Transport
();
I
ce
Transport
(
Listener
*
listener
,
Json
::
Value
&
data
);
virtual
~
I
ce
Transport
();
void
Close
();
Json
::
Value
toJson
();
IceComponent
GetIceComponent
();
// TODO: needed?
IceParameters
*
GetIceLocalParameters
();
// TODO: needed?
std
::
vector
<
IceCandidate
>&
GetIceLocalCandidates
();
// I
CE
Transport* CreateAssociatedGatherer(); // TODO: let's see.
// I
ce
Transport* CreateAssociatedGatherer(); // TODO: let's see.
/* Pure virtual methods inherited from RTC::ICEServer::Listener. */
public
:
...
...
@@ -95,14 +93,6 @@ namespace RTC
IceParameters
iceLocalParameters
;
std
::
vector
<
IceCandidate
>
iceLocalCandidates
;
};
/* Inline methods. */
inline
ICETransport
::
IceParameters
*
ICETransport
::
GetIceLocalParameters
()
{
return
&
(
this
->
iceLocalParameters
);
}
}
#endif
worker/include/RTC/IceCandidate.h
浏览文件 @
e1997532
...
...
@@ -12,34 +12,27 @@ namespace RTC
class
IceCandidate
{
public
:
enum
class
IceComponent
{
RTP
=
1
,
RTCP
=
2
};
public
:
enum
class
IceProtocol
enum
class
Protocol
{
UDP
=
1
,
TCP
};
public
:
enum
class
Ice
CandidateType
enum
class
CandidateType
{
HOST
=
1
};
public
:
enum
class
Ice
TcpCandidateType
enum
class
TcpCandidateType
{
PASSIVE
=
1
};
public
:
IceCandidate
(
RTC
::
UDPSocket
*
udpSocket
);
IceCandidate
(
RTC
::
TCPServer
*
tcpServer
);
IceCandidate
(
RTC
::
UDPSocket
*
udpSocket
,
unsigned
long
priority
);
IceCandidate
(
RTC
::
TCPServer
*
tcpServer
,
unsigned
long
priority
);
Json
::
Value
toJson
();
...
...
@@ -48,59 +41,11 @@ namespace RTC
std
::
string
foundation
;
unsigned
long
priority
;
std
::
string
ip
;
Ice
Protocol
protocol
;
Protocol
protocol
;
MS_PORT
port
;
Ice
CandidateType
type
;
Ice
TcpCandidateType
tcpType
;
CandidateType
type
;
TcpCandidateType
tcpType
;
};
/* Inline methods. */
inline
IceCandidate
::
IceCandidate
(
RTC
::
UDPSocket
*
udpSocket
)
:
foundation
(
"udpcandidate"
),
ip
(
udpSocket
->
GetLocalIP
()),
protocol
(
IceProtocol
::
UDP
),
port
(
udpSocket
->
GetLocalPort
()),
type
(
IceCandidateType
::
HOST
)
{}
inline
IceCandidate
::
IceCandidate
(
RTC
::
TCPServer
*
tcpServer
)
:
foundation
(
"tcpcandidate"
),
ip
(
tcpServer
->
GetLocalIP
()),
protocol
(
IceProtocol
::
TCP
),
port
(
tcpServer
->
GetLocalPort
()),
type
(
IceCandidateType
::
HOST
),
tcpType
(
IceTcpCandidateType
::
PASSIVE
)
{}
inline
Json
::
Value
IceCandidate
::
toJson
()
{
Json
::
Value
data
;
data
[
"foundation"
]
=
this
->
foundation
;
data
[
"priority"
]
=
(
unsigned
int
)
this
->
priority
;
data
[
"ip"
]
=
this
->
ip
;
data
[
"port"
]
=
this
->
port
;
if
(
this
->
protocol
==
IceProtocol
::
UDP
)
data
[
"protocol"
]
=
"udp"
;
else
data
[
"protocol"
]
=
"tcp"
;
if
(
this
->
type
==
IceCandidateType
::
HOST
)
data
[
"type"
]
=
"host"
;
if
(
this
->
protocol
==
IceProtocol
::
TCP
)
{
if
(
this
->
tcpType
==
IceTcpCandidateType
::
PASSIVE
)
data
[
"tcpType"
]
=
"passive"
;
}
return
data
;
}
}
#endif
worker/include/RTC/Peer.h
浏览文件 @
e1997532
#ifndef MS_RTC_PEER_H
#define MS_RTC_PEER_H
#include "RTC/I
CE
Transport.h"
#include "RTC/I
ce
Transport.h"
#include "RTC/RTPPacket.h"
#include "RTC/RTCPPacket.h"
#include "Channel/Request.h"
...
...
@@ -11,7 +11,7 @@
namespace
RTC
{
class
Peer
:
public
RTC
::
I
CE
Transport
::
Listener
public
RTC
::
I
ce
Transport
::
Listener
{
public
:
class
Listener
...
...
@@ -28,7 +28,7 @@ namespace RTC
Json
::
Value
Dump
();
void
HandleRequest
(
Channel
::
Request
*
request
);
/* Pure virtual methods inherited from RTC::I
CE
Transport::Listener. */
/* Pure virtual methods inherited from RTC::I
ce
Transport::Listener. */
public
:
// TODO
...
...
@@ -41,7 +41,7 @@ namespace RTC
Listener
*
listener
=
nullptr
;
// Others.
// TODO: it must be a unordered_map.
RTC
::
I
CE
Transport
*
iceTransport
=
nullptr
;
RTC
::
I
ce
Transport
*
iceTransport
=
nullptr
;
};
}
...
...
worker/src/RTC/ICETransport.cpp
浏览文件 @
e1997532
#define MS_CLASS "RTC::Transport"
#define MS_CLASS "RTC::
Ice
Transport"
#include "RTC/I
CE
Transport.h"
#include "RTC/I
ce
Transport.h"
#include "Settings.h"
#include "Utils.h"
#include "MediaSoupError.h"
#include "Logger.h"
#include <cmath> // std::pow()
#define ICE_CANDIDATE_PRIORITY_IPV4_UDP_RTP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (10000 + 30000)) + (256 - 1)
#define ICE_CANDIDATE_PRIORITY_IPV6_UDP_RTP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (10000 + 40000)) + (256 - 1)
#define ICE_CANDIDATE_PRIORITY_IPV4_TCP_RTP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (5000 + 30000)) + (256 - 1)
#define ICE_CANDIDATE_PRIORITY_IPV6_TCP_RTP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (5000 + 40000)) + (256 - 1)
#define ICE_CANDIDATE_PRIORITY_IPV4_UDP_RTCP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (10000 + 30000)) + (256 - 2)
#define ICE_CANDIDATE_PRIORITY_IPV6_UDP_RTCP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (10000 + 40000)) + (256 - 2)
#define ICE_CANDIDATE_PRIORITY_IPV4_TCP_RTCP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (5000 + 30000)) + (256 - 2)
#define ICE_CANDIDATE_PRIORITY_IPV6_TCP_RTCP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (5000 + 40000)) + (256 - 2)
namespace
RTC
{
/* Instance methods. */
I
CETransport
::
ICE
Transport
(
Listener
*
listener
,
Json
::
Value
&
data
)
:
I
ceTransport
::
Ice
Transport
(
Listener
*
listener
,
Json
::
Value
&
data
)
:
listener
(
listener
)
{
MS_TRACE
();
...
...
@@ -45,13 +55,15 @@ namespace RTC
this
->
iceLocalParameters
.
usernameFragment
=
this
->
iceServer
->
GetUsernameFragment
();
this
->
iceLocalParameters
.
password
=
this
->
iceServer
->
GetPassword
();
// TODO: We must check whether iceComponent is RTP or RTCP
// Open a IPv4 UDP socket.
if
(
option_udp
&&
Settings
::
configuration
.
hasIPv4
)
{
try
{
RTC
::
UDPSocket
*
udpSocket
=
RTC
::
UDPSocket
::
Factory
(
this
,
AF_INET
);
RTC
::
IceCandidate
iceCandidate
(
udpSocket
);
RTC
::
IceCandidate
iceCandidate
(
udpSocket
,
ICE_CANDIDATE_PRIORITY_IPV4_UDP_RTP
);
this
->
udpSockets
.
push_back
(
udpSocket
);
this
->
iceLocalCandidates
.
push_back
(
iceCandidate
);
...
...
@@ -68,7 +80,7 @@ namespace RTC
try
{
RTC
::
UDPSocket
*
udpSocket
=
RTC
::
UDPSocket
::
Factory
(
this
,
AF_INET6
);
RTC
::
IceCandidate
iceCandidate
(
udpSocket
);
RTC
::
IceCandidate
iceCandidate
(
udpSocket
,
ICE_CANDIDATE_PRIORITY_IPV6_UDP_RTP
);
this
->
udpSockets
.
push_back
(
udpSocket
);
this
->
iceLocalCandidates
.
push_back
(
iceCandidate
);
...
...
@@ -85,7 +97,7 @@ namespace RTC
try
{
RTC
::
TCPServer
*
tcpServer
=
RTC
::
TCPServer
::
Factory
(
this
,
this
,
AF_INET
);
RTC
::
IceCandidate
iceCandidate
(
tcpServer
);
RTC
::
IceCandidate
iceCandidate
(
tcpServer
,
ICE_CANDIDATE_PRIORITY_IPV4_TCP_RTP
);
this
->
tcpServers
.
push_back
(
tcpServer
);
this
->
iceLocalCandidates
.
push_back
(
iceCandidate
);
...
...
@@ -102,7 +114,7 @@ namespace RTC
try
{
RTC
::
TCPServer
*
tcpServer
=
RTC
::
TCPServer
::
Factory
(
this
,
this
,
AF_INET6
);
RTC
::
IceCandidate
iceCandidate
(
tcpServer
);
RTC
::
IceCandidate
iceCandidate
(
tcpServer
,
ICE_CANDIDATE_PRIORITY_IPV6_TCP_RTP
);
this
->
tcpServers
.
push_back
(
tcpServer
);
this
->
iceLocalCandidates
.
push_back
(
iceCandidate
);
...
...
@@ -114,12 +126,12 @@ namespace RTC
}
}
I
CETransport
::~
ICE
Transport
()
I
ceTransport
::~
Ice
Transport
()
{
MS_TRACE
();
}
void
I
CE
Transport
::
Close
()
void
I
ce
Transport
::
Close
()
{
MS_TRACE
();
...
...
@@ -144,17 +156,17 @@ namespace RTC
delete
this
;
}
Json
::
Value
I
CE
Transport
::
toJson
()
Json
::
Value
I
ce
Transport
::
toJson
()
{
MS_TRACE
();
static
const
Json
::
StaticString
iceLocalParameters
(
"iceLocalParameters"
);
static
const
Json
::
StaticString
ice
Candidates
(
"ice
Candidates"
);
static
const
Json
::
StaticString
ice
LocalCandidates
(
"iceLocal
Candidates"
);
Json
::
Value
data
;
if
(
this
->
iceComponent
==
I
CE
Transport
::
IceComponent
::
RTP
)
if
(
this
->
iceComponent
==
I
ce
Transport
::
IceComponent
::
RTP
)
data
[
"iceComponent"
]
=
"RTP"
;
else
data
[
"iceComponent"
]
=
"RTCP"
;
...
...
@@ -162,24 +174,24 @@ namespace RTC
data
[
iceLocalParameters
][
"usernameFragment"
]
=
this
->
iceLocalParameters
.
usernameFragment
;
data
[
iceLocalParameters
][
"password"
]
=
this
->
iceLocalParameters
.
password
;
data
[
iceCandidates
]
=
Json
::
arrayValue
;
data
[
ice
Local
Candidates
]
=
Json
::
arrayValue
;
for
(
auto
iceCandidate
:
this
->
iceLocalCandidates
)
{
data
[
iceCandidates
].
append
(
iceCandidate
.
toJson
());
data
[
ice
Local
Candidates
].
append
(
iceCandidate
.
toJson
());
}
return
data
;
}
void
I
CE
Transport
::
onOutgoingSTUNMessage
(
RTC
::
ICEServer
*
iceServer
,
RTC
::
STUNMessage
*
msg
,
RTC
::
TransportSource
*
source
)
void
I
ce
Transport
::
onOutgoingSTUNMessage
(
RTC
::
ICEServer
*
iceServer
,
RTC
::
STUNMessage
*
msg
,
RTC
::
TransportSource
*
source
)
{
MS_TRACE
();
// TODO
}
void
I
CE
Transport
::
onICEValidPair
(
RTC
::
ICEServer
*
iceServer
,
RTC
::
TransportSource
*
source
,
bool
has_use_candidate
)
void
I
ce
Transport
::
onICEValidPair
(
RTC
::
ICEServer
*
iceServer
,
RTC
::
TransportSource
*
source
,
bool
has_use_candidate
)
{
MS_TRACE
();
...
...
@@ -187,7 +199,7 @@ namespace RTC
}
inline
void
I
CE
Transport
::
onSTUNDataRecv
(
RTC
::
TransportSource
*
source
,
const
MS_BYTE
*
data
,
size_t
len
)
void
I
ce
Transport
::
onSTUNDataRecv
(
RTC
::
TransportSource
*
source
,
const
MS_BYTE
*
data
,
size_t
len
)
{
MS_TRACE
();
...
...
@@ -195,7 +207,7 @@ namespace RTC
}
inline
void
I
CE
Transport
::
onDTLSDataRecv
(
RTC
::
TransportSource
*
source
,
const
MS_BYTE
*
data
,
size_t
len
)
void
I
ce
Transport
::
onDTLSDataRecv
(
RTC
::
TransportSource
*
source
,
const
MS_BYTE
*
data
,
size_t
len
)
{
MS_TRACE
();
...
...
@@ -203,7 +215,7 @@ namespace RTC
}
inline
void
I
CE
Transport
::
onRTPDataRecv
(
RTC
::
TransportSource
*
source
,
const
MS_BYTE
*
data
,
size_t
len
)
void
I
ce
Transport
::
onRTPDataRecv
(
RTC
::
TransportSource
*
source
,
const
MS_BYTE
*
data
,
size_t
len
)
{
MS_TRACE
();
...
...
@@ -211,14 +223,14 @@ namespace RTC
}
inline
void
I
CE
Transport
::
onRTCPDataRecv
(
RTC
::
TransportSource
*
source
,
const
MS_BYTE
*
data
,
size_t
len
)
void
I
ce
Transport
::
onRTCPDataRecv
(
RTC
::
TransportSource
*
source
,
const
MS_BYTE
*
data
,
size_t
len
)
{
MS_TRACE
();
// TODO
}
void
I
CE
Transport
::
onSTUNDataRecv
(
RTC
::
UDPSocket
*
socket
,
const
MS_BYTE
*
data
,
size_t
len
,
const
struct
sockaddr
*
remote_addr
)
void
I
ce
Transport
::
onSTUNDataRecv
(
RTC
::
UDPSocket
*
socket
,
const
MS_BYTE
*
data
,
size_t
len
,
const
struct
sockaddr
*
remote_addr
)
{
MS_TRACE
();
...
...
@@ -226,7 +238,7 @@ namespace RTC
onSTUNDataRecv
(
&
source
,
data
,
len
);
}
void
I
CE
Transport
::
onDTLSDataRecv
(
RTC
::
UDPSocket
*
socket
,
const
MS_BYTE
*
data
,
size_t
len
,
const
struct
sockaddr
*
remote_addr
)
void
I
ce
Transport
::
onDTLSDataRecv
(
RTC
::
UDPSocket
*
socket
,
const
MS_BYTE
*
data
,
size_t
len
,
const
struct
sockaddr
*
remote_addr
)
{
MS_TRACE
();
...
...
@@ -234,7 +246,7 @@ namespace RTC
onDTLSDataRecv
(
&
source
,
data
,
len
);
}
void
I
CE
Transport
::
onRTPDataRecv
(
RTC
::
UDPSocket
*
socket
,
const
MS_BYTE
*
data
,
size_t
len
,
const
struct
sockaddr
*
remote_addr
)
void
I
ce
Transport
::
onRTPDataRecv
(
RTC
::
UDPSocket
*
socket
,
const
MS_BYTE
*
data
,
size_t
len
,
const
struct
sockaddr
*
remote_addr
)
{
MS_TRACE
();
...
...
@@ -242,7 +254,7 @@ namespace RTC
onRTPDataRecv
(
&
source
,
data
,
len
);
}
void
I
CE
Transport
::
onRTCPDataRecv
(
RTC
::
UDPSocket
*
socket
,
const
MS_BYTE
*
data
,
size_t
len
,
const
struct
sockaddr
*
remote_addr
)
void
I
ce
Transport
::
onRTCPDataRecv
(
RTC
::
UDPSocket
*
socket
,
const
MS_BYTE
*
data
,
size_t
len
,
const
struct
sockaddr
*
remote_addr
)
{
MS_TRACE
();
...
...
@@ -250,7 +262,7 @@ namespace RTC
onRTCPDataRecv
(
&
source
,
data
,
len
);
}
void
I
CE
Transport
::
onRTCTCPConnectionClosed
(
RTC
::
TCPServer
*
tcpServer
,
RTC
::
TCPConnection
*
connection
,
bool
is_closed_by_peer
)
void
I
ce
Transport
::
onRTCTCPConnectionClosed
(
RTC
::
TCPServer
*
tcpServer
,
RTC
::
TCPConnection
*
connection
,
bool
is_closed_by_peer
)
{
MS_TRACE
();
...
...
@@ -263,7 +275,7 @@ namespace RTC
// }
}
void
I
CE
Transport
::
onSTUNDataRecv
(
RTC
::
TCPConnection
*
connection
,
const
MS_BYTE
*
data
,
size_t
len
)
void
I
ce
Transport
::
onSTUNDataRecv
(
RTC
::
TCPConnection
*
connection
,
const
MS_BYTE
*
data
,
size_t
len
)
{
MS_TRACE
();
...
...
@@ -271,7 +283,7 @@ namespace RTC
onSTUNDataRecv
(
&
source
,
data
,
len
);
}
void
I
CE
Transport
::
onDTLSDataRecv
(
RTC
::
TCPConnection
*
connection
,
const
MS_BYTE
*
data
,
size_t
len
)
void
I
ce
Transport
::
onDTLSDataRecv
(
RTC
::
TCPConnection
*
connection
,
const
MS_BYTE
*
data
,
size_t
len
)
{
MS_TRACE
();
...
...
@@ -279,7 +291,7 @@ namespace RTC
onDTLSDataRecv
(
&
source
,
data
,
len
);
}
void
I
CE
Transport
::
onRTPDataRecv
(
RTC
::
TCPConnection
*
connection
,
const
MS_BYTE
*
data
,
size_t
len
)
void
I
ce
Transport
::
onRTPDataRecv
(
RTC
::
TCPConnection
*
connection
,
const
MS_BYTE
*
data
,
size_t
len
)
{
MS_TRACE
();
...
...
@@ -287,7 +299,7 @@ namespace RTC
onRTPDataRecv
(
&
source
,
data
,
len
);
}
void
I
CE
Transport
::
onRTCPDataRecv
(
RTC
::
TCPConnection
*
connection
,
const
MS_BYTE
*
data
,
size_t
len
)
void
I
ce
Transport
::
onRTCPDataRecv
(
RTC
::
TCPConnection
*
connection
,
const
MS_BYTE
*
data
,
size_t
len
)
{
MS_TRACE
();
...
...
worker/src/RTC/IceCandidate.cpp
0 → 100644
浏览文件 @
e1997532
#define MS_CLASS "RTC::IceCandidate"
#include "RTC/IceCandidate.h"
namespace
RTC
{
/* Instance methods. */
IceCandidate
::
IceCandidate
(
RTC
::
UDPSocket
*
udpSocket
,
unsigned
long
priority
)
:
foundation
(
"udpcandidate"
),
priority
(
priority
),
ip
(
udpSocket
->
GetLocalIP
()),
protocol
(
Protocol
::
UDP
),
port
(
udpSocket
->
GetLocalPort
()),
type
(
CandidateType
::
HOST
)
{}
IceCandidate
::
IceCandidate
(
RTC
::
TCPServer
*
tcpServer
,
unsigned
long
priority
)
:
foundation
(
"tcpcandidate"
),
priority
(
priority
),
ip
(
tcpServer
->
GetLocalIP
()),
protocol
(
Protocol
::
TCP
),
port
(
tcpServer
->
GetLocalPort
()),
type
(
CandidateType
::
HOST
),
tcpType
(
TcpCandidateType
::
PASSIVE
)
{}
Json
::
Value
IceCandidate
::
toJson
()
{
Json
::
Value
data
;
data
[
"foundation"
]
=
this
->
foundation
;
data
[
"priority"
]
=
(
unsigned
int
)
this
->
priority
;
data
[
"ip"
]
=
this
->
ip
;
data
[
"port"
]
=
this
->
port
;
switch
(
this
->
type
)
{
case
CandidateType
:
:
HOST
:
data
[
"type"
]
=
"host"
;
break
;
}
switch
(
this
->
protocol
)
{
case
Protocol
:
:
UDP
:
data
[
"protocol"
]
=
"udp"
;
break
;
case
Protocol
:
:
TCP
:
data
[
"protocol"
]
=
"tcp"
;
switch
(
this
->
tcpType
)
{
case
TcpCandidateType
:
:
PASSIVE
:
data
[
"tcpType"
]
=
"passive"
;
break
;
}
break
;
}
return
data
;
}
}
worker/src/RTC/Peer.cpp
浏览文件 @
e1997532
...
...
@@ -60,7 +60,7 @@ namespace RTC
{
try
{
this
->
iceTransport
=
new
RTC
::
I
CE
Transport
(
this
,
request
->
data
);
this
->
iceTransport
=
new
RTC
::
I
ce
Transport
(
this
,
request
->
data
);
}
catch
(
const
MediaSoupError
&
error
)
{
...
...
worker/src/Settings.cpp
浏览文件 @
e1997532
...
...
@@ -153,15 +153,15 @@ void Settings::PrintConfiguration()
else
MS_DEBUG
(
"rtcListenIPv4: (unavailable)"
);
if
(
Settings
::
configuration
.
hasIPv6
)
MS_DEBUG
(
"
-
rtcListenIPv6:
\"
%s
\"
"
,
Settings
::
configuration
.
rtcListenIPv6
.
c_str
());
MS_DEBUG
(
"rtcListenIPv6:
\"
%s
\"
"
,
Settings
::
configuration
.
rtcListenIPv6
.
c_str
());
else
MS_DEBUG
(
"rtcListenIPv6: (unavailable)"
);
MS_DEBUG
(
"rtcMinPort: %d"
,
Settings
::
configuration
.
rtcMinPort
);
MS_DEBUG
(
"rtcMaxPort: %d"
,
Settings
::
configuration
.
rtcMaxPort
);
if
(
!
Settings
::
configuration
.
dtlsCertificateFile
.
empty
())
{
MS_DEBUG
(
"
-
dtlsCertificateFile:
\"
%s
\"
"
,
Settings
::
configuration
.
dtlsCertificateFile
.
c_str
());
MS_DEBUG
(
"
-
dtlsPrivateKeyFile:
\"
%s
\"
"
,
Settings
::
configuration
.
dtlsPrivateKeyFile
.
c_str
());
MS_DEBUG
(
"dtlsCertificateFile:
\"
%s
\"
"
,
Settings
::
configuration
.
dtlsCertificateFile
.
c_str
());
MS_DEBUG
(
"dtlsPrivateKeyFile:
\"
%s
\"
"
,
Settings
::
configuration
.
dtlsPrivateKeyFile
.
c_str
());
}
MS_DEBUG
(
"</configuration>"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论