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 个修改的文件
包含
16 行增加
和
19 行删除
+16
-19
RtpListener.hpp
worker/include/RTC/RtpListener.hpp
+3
-3
Settings.hpp
worker/include/Settings.hpp
+1
-1
DtlsTransport.cpp
worker/src/RTC/DtlsTransport.cpp
+5
-7
PlainRtpTransport.cpp
worker/src/RTC/PlainRtpTransport.cpp
+1
-2
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
...
@@ -28,9 +28,9 @@ namespace RTC
private
:
private
:
void
RollbackProducer
(
void
RollbackProducer
(
RTC
::
Producer
*
producer
,
RTC
::
Producer
*
producer
,
std
::
vector
<
uint32_t
>&
previousSsrcs
,
const
std
::
vector
<
uint32_t
>&
previousSsrcs
,
std
::
string
&
previousMuxId
,
const
std
::
string
&
previousMuxId
,
std
::
string
&
previousRid
);
const
std
::
string
&
previousRid
);
public
:
public
:
// Table of SSRC / Producer pairs.
// Table of SSRC / Producer pairs.
...
...
worker/include/Settings.hpp
浏览文件 @
bc2ab5aa
...
@@ -57,7 +57,7 @@ private:
...
@@ -57,7 +57,7 @@ private:
static
void
SetRtcIPv6
(
const
std
::
string
&
ip
);
static
void
SetRtcIPv6
(
const
std
::
string
&
ip
);
static
void
SetRtcPorts
();
static
void
SetRtcPorts
();
static
void
SetDtlsCertificateAndPrivateKeyFiles
();
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
);
static
void
SetLogTags
(
Json
::
Value
&
json
);
public
:
public
:
...
...
worker/src/RTC/DtlsTransport.cpp
浏览文件 @
bc2ab5aa
...
@@ -50,7 +50,7 @@ namespace RTC
...
@@ -50,7 +50,7 @@ namespace RTC
{
{
/* Static. */
/* Static. */
static
constexpr
int
d
tlsMtu
{
1350
};
static
constexpr
int
D
tlsMtu
{
1350
};
static
constexpr
int
SslReadBufferSize
{
65536
};
static
constexpr
int
SslReadBufferSize
{
65536
};
// NOTE: Those values are hardcoded as we just use AES_CM_128_HMAC_SHA1_80 and
// 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.
// AES_CM_128_HMAC_SHA1_32 which share same length values for key and salt.
...
@@ -551,8 +551,8 @@ namespace RTC
...
@@ -551,8 +551,8 @@ namespace RTC
SSL_set_bio
(
this
->
ssl
,
this
->
sslBioFromNetwork
,
this
->
sslBioToNetwork
);
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.
// Set the MTU so that we don't send packets that are too large with no fragmentation.
SSL_set_mtu
(
this
->
ssl
,
d
tlsMtu
);
SSL_set_mtu
(
this
->
ssl
,
D
tlsMtu
);
DTLS_set_link_mtu
(
this
->
ssl
,
d
tlsMtu
);
DTLS_set_link_mtu
(
this
->
ssl
,
D
tlsMtu
);
/* Set the DTLS timer. */
/* Set the DTLS timer. */
...
@@ -873,7 +873,7 @@ namespace RTC
...
@@ -873,7 +873,7 @@ namespace RTC
// Process the handshake just once (ignore if DTLS renegotiation).
// Process the handshake just once (ignore if DTLS renegotiation).
if
(
!
wasHandshakeDone
&&
this
->
remoteFingerprint
.
algorithm
!=
FingerprintAlgorithm
::
NONE
)
if
(
!
wasHandshakeDone
&&
this
->
remoteFingerprint
.
algorithm
!=
FingerprintAlgorithm
::
NONE
)
return
ProcessHandshake
();
return
ProcessHandshake
();
else
return
true
;
return
true
;
}
}
// Check if the peer sent close alert or a fatal error happened.
// Check if the peer sent close alert or a fatal error happened.
...
@@ -1008,8 +1008,7 @@ namespace RTC
...
@@ -1008,8 +1008,7 @@ namespace RTC
return
true
;
return
true
;
}
}
else
{
// NOTE: We assume that "use_srtp" DTLS extension is required even if
// NOTE: We assume that "use_srtp" DTLS extension is required even if
// there is no audio/video.
// there is no audio/video.
MS_WARN_TAG
(
dtls
,
"SRTP profile not negotiated"
);
MS_WARN_TAG
(
dtls
,
"SRTP profile not negotiated"
);
...
@@ -1022,7 +1021,6 @@ namespace RTC
...
@@ -1022,7 +1021,6 @@ namespace RTC
return
false
;
return
false
;
}
}
}
inline
bool
DtlsTransport
::
CheckRemoteFingerprint
()
inline
bool
DtlsTransport
::
CheckRemoteFingerprint
()
{
{
...
...
worker/src/RTC/PlainRtpTransport.cpp
浏览文件 @
bc2ab5aa
...
@@ -83,7 +83,6 @@ namespace RTC
...
@@ -83,7 +83,6 @@ namespace RTC
{
{
MS_TRACE
();
MS_TRACE
();
if
(
this
->
tuple
!=
nullptr
)
delete
this
->
tuple
;
delete
this
->
tuple
;
if
(
this
->
udpSocket
!=
nullptr
)
if
(
this
->
udpSocket
!=
nullptr
)
...
@@ -224,7 +223,7 @@ namespace RTC
...
@@ -224,7 +223,7 @@ namespace RTC
bool
PlainRtpTransport
::
IsConnected
()
const
bool
PlainRtpTransport
::
IsConnected
()
const
{
{
return
this
->
tuple
?
true
:
false
;
return
this
->
tuple
!=
nullptr
;
}
}
void
PlainRtpTransport
::
SendRtcpCompoundPacket
(
RTC
::
RTCP
::
CompoundPacket
*
packet
)
void
PlainRtpTransport
::
SendRtcpCompoundPacket
(
RTC
::
RTCP
::
CompoundPacket
*
packet
)
...
...
worker/src/RTC/RtpListener.cpp
浏览文件 @
bc2ab5aa
...
@@ -328,9 +328,9 @@ namespace RTC
...
@@ -328,9 +328,9 @@ namespace RTC
void
RtpListener
::
RollbackProducer
(
void
RtpListener
::
RollbackProducer
(
RTC
::
Producer
*
producer
,
RTC
::
Producer
*
producer
,
std
::
vector
<
uint32_t
>&
previousSsrcs
,
const
std
::
vector
<
uint32_t
>&
previousSsrcs
,
std
::
string
&
previousMuxId
,
const
std
::
string
&
previousMuxId
,
std
::
string
&
previousRid
)
const
std
::
string
&
previousRid
)
{
{
MS_TRACE
();
MS_TRACE
();
...
...
worker/src/RTC/WebRtcTransport.cpp
浏览文件 @
bc2ab5aa
...
@@ -364,7 +364,7 @@ namespace RTC
...
@@ -364,7 +364,7 @@ namespace RTC
{
{
MS_TRACE
();
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
JsonStringType
{
"type"
};
static
const
Json
::
StaticString
JsonStringTimestamp
{
"timestamp"
};
static
const
Json
::
StaticString
JsonStringTimestamp
{
"timestamp"
};
static
const
Json
::
StaticString
JsonStringId
{
"id"
};
static
const
Json
::
StaticString
JsonStringId
{
"id"
};
...
@@ -393,7 +393,7 @@ namespace RTC
...
@@ -393,7 +393,7 @@ namespace RTC
Json
::
Value
json
(
Json
::
objectValue
);
Json
::
Value
json
(
Json
::
objectValue
);
json
[
JsonStringType
]
=
t
ype
;
json
[
JsonStringType
]
=
T
ype
;
json
[
JsonStringTimestamp
]
=
Json
::
UInt64
{
DepLibUV
::
GetTime
()
};
json
[
JsonStringTimestamp
]
=
Json
::
UInt64
{
DepLibUV
::
GetTime
()
};
json
[
JsonStringId
]
=
Json
::
UInt
{
this
->
transportId
};
json
[
JsonStringId
]
=
Json
::
UInt
{
this
->
transportId
};
...
...
worker/src/Settings.cpp
浏览文件 @
bc2ab5aa
...
@@ -543,7 +543,7 @@ void Settings::SetDtlsCertificateAndPrivateKeyFiles()
...
@@ -543,7 +543,7 @@ void Settings::SetDtlsCertificateAndPrivateKeyFiles()
Settings
::
configuration
.
dtlsPrivateKeyFile
=
dtlsPrivateKeyFile
;
Settings
::
configuration
.
dtlsPrivateKeyFile
=
dtlsPrivateKeyFile
;
}
}
void
Settings
::
SetLogTags
(
std
::
vector
<
std
::
string
>&
tags
)
void
Settings
::
SetLogTags
(
const
std
::
vector
<
std
::
string
>&
tags
)
{
{
MS_TRACE
();
MS_TRACE
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论