Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
bc2ab5aa
提交
bc2ab5aa
authored
11月 30, 2018
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make clang-tidy happier
上级
ddb1f3e0
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
26 行增加
和
29 行删除
+26
-29
RtpListener.hpp
worker/include/RTC/RtpListener.hpp
+3
-3
Settings.hpp
worker/include/Settings.hpp
+1
-1
DtlsTransport.cpp
worker/src/RTC/DtlsTransport.cpp
+14
-16
PlainRtpTransport.cpp
worker/src/RTC/PlainRtpTransport.cpp
+2
-3
RtpListener.cpp
worker/src/RTC/RtpListener.cpp
+3
-3
WebRtcTransport.cpp
worker/src/RTC/WebRtcTransport.cpp
+2
-2
Settings.cpp
worker/src/Settings.cpp
+1
-1
没有找到文件。
worker/include/RTC/RtpListener.hpp
浏览文件 @
bc2ab5aa
...
...
@@ -28,9 +28,9 @@ namespace RTC
private
:
void
RollbackProducer
(
RTC
::
Producer
*
producer
,
std
::
vector
<
uint32_t
>&
previousSsrcs
,
std
::
string
&
previousMuxId
,
std
::
string
&
previousRid
);
const
std
::
vector
<
uint32_t
>&
previousSsrcs
,
const
std
::
string
&
previousMuxId
,
const
std
::
string
&
previousRid
);
public
:
// Table of SSRC / Producer pairs.
...
...
worker/include/Settings.hpp
浏览文件 @
bc2ab5aa
...
...
@@ -57,7 +57,7 @@ private:
static
void
SetRtcIPv6
(
const
std
::
string
&
ip
);
static
void
SetRtcPorts
();
static
void
SetDtlsCertificateAndPrivateKeyFiles
();
static
void
SetLogTags
(
std
::
vector
<
std
::
string
>&
tags
);
static
void
SetLogTags
(
const
std
::
vector
<
std
::
string
>&
tags
);
static
void
SetLogTags
(
Json
::
Value
&
json
);
public
:
...
...
worker/src/RTC/DtlsTransport.cpp
浏览文件 @
bc2ab5aa
...
...
@@ -50,7 +50,7 @@ namespace RTC
{
/* Static. */
static
constexpr
int
d
tlsMtu
{
1350
};
static
constexpr
int
D
tlsMtu
{
1350
};
static
constexpr
int
SslReadBufferSize
{
65536
};
// NOTE: Those values are hardcoded as we just use AES_CM_128_HMAC_SHA1_80 and
// AES_CM_128_HMAC_SHA1_32 which share same length values for key and salt.
...
...
@@ -551,8 +551,8 @@ namespace RTC
SSL_set_bio
(
this
->
ssl
,
this
->
sslBioFromNetwork
,
this
->
sslBioToNetwork
);
// Set the MTU so that we don't send packets that are too large with no fragmentation.
SSL_set_mtu
(
this
->
ssl
,
d
tlsMtu
);
DTLS_set_link_mtu
(
this
->
ssl
,
d
tlsMtu
);
SSL_set_mtu
(
this
->
ssl
,
D
tlsMtu
);
DTLS_set_link_mtu
(
this
->
ssl
,
D
tlsMtu
);
/* Set the DTLS timer. */
...
...
@@ -873,8 +873,8 @@ namespace RTC
// Process the handshake just once (ignore if DTLS renegotiation).
if
(
!
wasHandshakeDone
&&
this
->
remoteFingerprint
.
algorithm
!=
FingerprintAlgorithm
::
NONE
)
return
ProcessHandshake
();
else
return
true
;
return
true
;
}
// Check if the peer sent close alert or a fatal error happened.
else
if
(((
SSL_get_shutdown
(
this
->
ssl
)
&
SSL_RECEIVED_SHUTDOWN
)
!=
0
)
||
err
==
SSL_ERROR_SSL
||
err
==
SSL_ERROR_SYSCALL
)
...
...
@@ -1008,20 +1008,18 @@ namespace RTC
return
true
;
}
else
{
// NOTE: We assume that "use_srtp" DTLS extension is required even if
// there is no audio/video.
MS_WARN_TAG
(
dtls
,
"SRTP profile not negotiated"
);
Reset
();
// NOTE: We assume that "use_srtp" DTLS extension is required even if
// there is no audio/video.
MS_WARN_TAG
(
dtls
,
"SRTP profile not negotiated"
);
// Set state and notify the listener.
this
->
state
=
DtlsState
::
FAILED
;
this
->
listener
->
OnDtlsFailed
(
this
);
Reset
();
return
false
;
}
// Set state and notify the listener.
this
->
state
=
DtlsState
::
FAILED
;
this
->
listener
->
OnDtlsFailed
(
this
);
return
false
;
}
inline
bool
DtlsTransport
::
CheckRemoteFingerprint
()
...
...
worker/src/RTC/PlainRtpTransport.cpp
浏览文件 @
bc2ab5aa
...
...
@@ -83,8 +83,7 @@ namespace RTC
{
MS_TRACE
();
if
(
this
->
tuple
!=
nullptr
)
delete
this
->
tuple
;
delete
this
->
tuple
;
if
(
this
->
udpSocket
!=
nullptr
)
this
->
udpSocket
->
Destroy
();
...
...
@@ -224,7 +223,7 @@ namespace RTC
bool
PlainRtpTransport
::
IsConnected
()
const
{
return
this
->
tuple
?
true
:
false
;
return
this
->
tuple
!=
nullptr
;
}
void
PlainRtpTransport
::
SendRtcpCompoundPacket
(
RTC
::
RTCP
::
CompoundPacket
*
packet
)
...
...
worker/src/RTC/RtpListener.cpp
浏览文件 @
bc2ab5aa
...
...
@@ -328,9 +328,9 @@ namespace RTC
void
RtpListener
::
RollbackProducer
(
RTC
::
Producer
*
producer
,
std
::
vector
<
uint32_t
>&
previousSsrcs
,
std
::
string
&
previousMuxId
,
std
::
string
&
previousRid
)
const
std
::
vector
<
uint32_t
>&
previousSsrcs
,
const
std
::
string
&
previousMuxId
,
const
std
::
string
&
previousRid
)
{
MS_TRACE
();
...
...
worker/src/RTC/WebRtcTransport.cpp
浏览文件 @
bc2ab5aa
...
...
@@ -364,7 +364,7 @@ namespace RTC
{
MS_TRACE
();
static
const
std
::
string
t
ype
(
"transport"
);
static
const
std
::
string
T
ype
(
"transport"
);
static
const
Json
::
StaticString
JsonStringType
{
"type"
};
static
const
Json
::
StaticString
JsonStringTimestamp
{
"timestamp"
};
static
const
Json
::
StaticString
JsonStringId
{
"id"
};
...
...
@@ -393,7 +393,7 @@ namespace RTC
Json
::
Value
json
(
Json
::
objectValue
);
json
[
JsonStringType
]
=
t
ype
;
json
[
JsonStringType
]
=
T
ype
;
json
[
JsonStringTimestamp
]
=
Json
::
UInt64
{
DepLibUV
::
GetTime
()
};
json
[
JsonStringId
]
=
Json
::
UInt
{
this
->
transportId
};
...
...
worker/src/Settings.cpp
浏览文件 @
bc2ab5aa
...
...
@@ -543,7 +543,7 @@ void Settings::SetDtlsCertificateAndPrivateKeyFiles()
Settings
::
configuration
.
dtlsPrivateKeyFile
=
dtlsPrivateKeyFile
;
}
void
Settings
::
SetLogTags
(
std
::
vector
<
std
::
string
>&
tags
)
void
Settings
::
SetLogTags
(
const
std
::
vector
<
std
::
string
>&
tags
)
{
MS_TRACE
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论