Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
aea3b7a2
提交
aea3b7a2
authored
12月 29, 2016
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use explicit keyword in all the class constructor declarations with a single argument.
上级
d061f1e5
显示空白字符变更
内嵌
并排
正在显示
39 个修改的文件
包含
75 行增加
和
77 行删除
+75
-77
Notifier.h
worker/include/Channel/Notifier.h
+1
-1
UnixStreamSocket.h
worker/include/Channel/UnixStreamSocket.h
+1
-1
Logger.h
worker/include/Logger.h
+1
-1
Loop.h
worker/include/Loop.h
+1
-1
MediaSoupError.h
worker/include/MediaSoupError.h
+1
-1
DtlsTransport.h
worker/include/RTC/DtlsTransport.h
+1
-1
IceServer.h
worker/include/RTC/IceServer.h
+1
-1
Parameters.h
worker/include/RTC/Parameters.h
+5
-5
Feedback.h
worker/include/RTC/RTCP/Feedback.h
+1
-1
FeedbackPs.h
worker/include/RTC/RTCP/FeedbackPs.h
+1
-1
FeedbackPsAfb.h
worker/include/RTC/RTCP/FeedbackPsAfb.h
+1
-1
FeedbackPsFir.h
worker/include/RTC/RTCP/FeedbackPsFir.h
+2
-2
FeedbackPsLei.h
worker/include/RTC/RTCP/FeedbackPsLei.h
+3
-3
FeedbackPsPli.h
worker/include/RTC/RTCP/FeedbackPsPli.h
+1
-1
FeedbackPsRpsi.h
worker/include/RTC/RTCP/FeedbackPsRpsi.h
+3
-4
FeedbackPsSli.h
worker/include/RTC/RTCP/FeedbackPsSli.h
+2
-2
FeedbackPsTst.h
worker/include/RTC/RTCP/FeedbackPsTst.h
+2
-2
FeedbackPsVbcm.h
worker/include/RTC/RTCP/FeedbackPsVbcm.h
+2
-2
FeedbackRtp.h
worker/include/RTC/RTCP/FeedbackRtp.h
+1
-1
FeedbackRtpEcn.h
worker/include/RTC/RTCP/FeedbackRtpEcn.h
+2
-2
FeedbackRtpNack.h
worker/include/RTC/RTCP/FeedbackRtpNack.h
+2
-2
FeedbackRtpSrReq.h
worker/include/RTC/RTCP/FeedbackRtpSrReq.h
+1
-1
FeedbackRtpTllei.h
worker/include/RTC/RTCP/FeedbackRtpTllei.h
+2
-2
FeedbackRtpTmmb.h
worker/include/RTC/RTCP/FeedbackRtpTmmb.h
+2
-2
Packet.h
worker/include/RTC/RTCP/Packet.h
+1
-1
ReceiverReport.h
worker/include/RTC/RTCP/ReceiverReport.h
+2
-2
Sdes.h
worker/include/RTC/RTCP/Sdes.h
+4
-4
SenderReport.h
worker/include/RTC/RTCP/SenderReport.h
+2
-2
RtpDictionaries.h
worker/include/RTC/RtpDictionaries.h
+9
-9
RtpStream.h
worker/include/RTC/RtpStream.h
+1
-1
TransportTuple.h
worker/include/RTC/TransportTuple.h
+1
-1
SignalsHandler.h
worker/include/handles/SignalsHandler.h
+1
-1
TcpConnection.h
worker/include/handles/TcpConnection.h
+1
-1
Timer.h
worker/include/handles/Timer.h
+1
-1
UdpSocket.h
worker/include/handles/UdpSocket.h
+1
-1
Logger.cpp
worker/src/Logger.cpp
+1
-1
IceServer.cpp
worker/src/RTC/IceServer.cpp
+1
-1
RtpParameters.cpp
worker/src/RTC/RtpDictionaries/RtpParameters.cpp
+8
-9
TcpConnection.cpp
worker/src/RTC/TcpConnection.cpp
+1
-1
没有找到文件。
worker/include/Channel/Notifier.h
浏览文件 @
aea3b7a2
...
@@ -11,7 +11,7 @@ namespace Channel
...
@@ -11,7 +11,7 @@ namespace Channel
class
Notifier
class
Notifier
{
{
public
:
public
:
Notifier
(
Channel
::
UnixStreamSocket
*
channel
);
explicit
Notifier
(
Channel
::
UnixStreamSocket
*
channel
);
virtual
~
Notifier
();
virtual
~
Notifier
();
void
Close
();
void
Close
();
...
...
worker/include/Channel/UnixStreamSocket.h
浏览文件 @
aea3b7a2
...
@@ -23,7 +23,7 @@ namespace Channel
...
@@ -23,7 +23,7 @@ namespace Channel
static
uint8_t
writeBuffer
[];
static
uint8_t
writeBuffer
[];
public
:
public
:
UnixStreamSocket
(
int
fd
);
explicit
UnixStreamSocket
(
int
fd
);
virtual
~
UnixStreamSocket
();
virtual
~
UnixStreamSocket
();
void
SetListener
(
Listener
*
listener
);
void
SetListener
(
Listener
*
listener
);
...
...
worker/include/Logger.h
浏览文件 @
aea3b7a2
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
class
Logger
class
Logger
{
{
public
:
public
:
static
void
Init
(
const
std
::
string
id
,
Channel
::
UnixStreamSocket
*
channel
);
static
void
Init
(
const
std
::
string
&
id
,
Channel
::
UnixStreamSocket
*
channel
);
static
bool
HasDebugLevel
();
static
bool
HasDebugLevel
();
public
:
public
:
...
...
worker/include/Loop.h
浏览文件 @
aea3b7a2
...
@@ -15,7 +15,7 @@ class Loop :
...
@@ -15,7 +15,7 @@ class Loop :
public
RTC
::
Room
::
Listener
public
RTC
::
Room
::
Listener
{
{
public
:
public
:
Loop
(
Channel
::
UnixStreamSocket
*
channel
);
explicit
Loop
(
Channel
::
UnixStreamSocket
*
channel
);
~
Loop
();
~
Loop
();
private
:
private
:
...
...
worker/include/MediaSoupError.h
浏览文件 @
aea3b7a2
...
@@ -10,7 +10,7 @@ class MediaSoupError :
...
@@ -10,7 +10,7 @@ class MediaSoupError :
public
std
::
runtime_error
public
std
::
runtime_error
{
{
public
:
public
:
MediaSoupError
(
const
char
*
description
);
explicit
MediaSoupError
(
const
char
*
description
);
};
};
/* Inline methods. */
/* Inline methods. */
...
...
worker/include/RTC/DtlsTransport.h
浏览文件 @
aea3b7a2
...
@@ -114,7 +114,7 @@ namespace RTC
...
@@ -114,7 +114,7 @@ namespace RTC
static
std
::
vector
<
SrtpProfileMapEntry
>
srtpProfiles
;
static
std
::
vector
<
SrtpProfileMapEntry
>
srtpProfiles
;
public
:
public
:
DtlsTransport
(
Listener
*
listener
);
explicit
DtlsTransport
(
Listener
*
listener
);
virtual
~
DtlsTransport
();
virtual
~
DtlsTransport
();
void
Close
();
void
Close
();
...
...
worker/include/RTC/IceServer.h
浏览文件 @
aea3b7a2
...
@@ -36,7 +36,7 @@ namespace RTC
...
@@ -36,7 +36,7 @@ namespace RTC
};
};
public
:
public
:
IceServer
(
Listener
*
listener
,
const
std
::
string
&
usernameFragment
,
const
std
::
string
password
);
IceServer
(
Listener
*
listener
,
const
std
::
string
&
usernameFragment
,
const
std
::
string
&
password
);
void
Close
();
void
Close
();
void
ProcessStunMessage
(
RTC
::
StunMessage
*
msg
,
RTC
::
TransportTuple
*
tuple
);
void
ProcessStunMessage
(
RTC
::
StunMessage
*
msg
,
RTC
::
TransportTuple
*
tuple
);
...
...
worker/include/RTC/Parameters.h
浏览文件 @
aea3b7a2
...
@@ -27,27 +27,27 @@ namespace RTC
...
@@ -27,27 +27,27 @@ namespace RTC
public
:
public
:
Value
()
{};
Value
()
{};
Value
(
bool
booleanValue
)
:
explicit
Value
(
bool
booleanValue
)
:
type
(
Type
::
BOOLEAN
),
type
(
Type
::
BOOLEAN
),
booleanValue
(
booleanValue
)
booleanValue
(
booleanValue
)
{}
{}
Value
(
int32_t
integerValue
)
:
explicit
Value
(
int32_t
integerValue
)
:
type
(
Type
::
INTEGER
),
type
(
Type
::
INTEGER
),
integerValue
(
integerValue
)
integerValue
(
integerValue
)
{}
{}
Value
(
double
doubleValue
)
:
explicit
Value
(
double
doubleValue
)
:
type
(
Type
::
DOUBLE
),
type
(
Type
::
DOUBLE
),
doubleValue
(
doubleValue
)
doubleValue
(
doubleValue
)
{}
{}
Value
(
std
::
string
&
stringValue
)
:
explicit
Value
(
std
::
string
&
stringValue
)
:
type
(
Type
::
STRING
),
type
(
Type
::
STRING
),
stringValue
(
stringValue
)
stringValue
(
stringValue
)
{}
{}
Value
(
std
::
vector
<
int32_t
>&
arrayOfIntegers
)
:
explicit
Value
(
std
::
vector
<
int32_t
>&
arrayOfIntegers
)
:
type
(
Type
::
ARRAY_OF_INTEGERS
),
type
(
Type
::
ARRAY_OF_INTEGERS
),
arrayOfIntegers
(
arrayOfIntegers
)
arrayOfIntegers
(
arrayOfIntegers
)
{}
{}
...
...
worker/include/RTC/RTCP/Feedback.h
浏览文件 @
aea3b7a2
...
@@ -34,7 +34,7 @@ namespace RTC { namespace RTCP
...
@@ -34,7 +34,7 @@ namespace RTC { namespace RTCP
void
SetMediaSsrc
(
uint32_t
ssrc
);
void
SetMediaSsrc
(
uint32_t
ssrc
);
protected
:
protected
:
FeedbackPacket
(
CommonHeader
*
commonHeader
);
explicit
FeedbackPacket
(
CommonHeader
*
commonHeader
);
FeedbackPacket
(
typename
T
::
MessageType
type
,
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
);
FeedbackPacket
(
typename
T
::
MessageType
type
,
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
);
virtual
~
FeedbackPacket
();
virtual
~
FeedbackPacket
();
...
...
worker/include/RTC/RTCP/FeedbackPs.h
浏览文件 @
aea3b7a2
...
@@ -18,7 +18,7 @@ namespace RTC { namespace RTCP
...
@@ -18,7 +18,7 @@ namespace RTC { namespace RTCP
public
:
public
:
// Parsed Report. Points to an external data.
// Parsed Report. Points to an external data.
FeedbackPsItemPacket
(
CommonHeader
*
commonHeader
);
explicit
FeedbackPsItemPacket
(
CommonHeader
*
commonHeader
);
FeedbackPsItemPacket
(
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
=
0
);
FeedbackPsItemPacket
(
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
=
0
);
void
Dump
()
override
;
void
Dump
()
override
;
...
...
worker/include/RTC/RTCP/FeedbackPsAfb.h
浏览文件 @
aea3b7a2
...
@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP
...
@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP
public
:
public
:
// Parsed Report. Points to an external data.
// Parsed Report. Points to an external data.
FeedbackPsAfbPacket
(
CommonHeader
*
commonHeader
);
explicit
FeedbackPsAfbPacket
(
CommonHeader
*
commonHeader
);
FeedbackPsAfbPacket
(
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
);
FeedbackPsAfbPacket
(
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
);
size_t
GetSize
()
override
;
size_t
GetSize
()
override
;
...
...
worker/include/RTC/RTCP/FeedbackPsFir.h
浏览文件 @
aea3b7a2
...
@@ -37,8 +37,8 @@ namespace RTC { namespace RTCP
...
@@ -37,8 +37,8 @@ namespace RTC { namespace RTCP
static
FirItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
FirItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
FirItem
(
Header
*
header
);
explicit
FirItem
(
Header
*
header
);
FirItem
(
FirItem
*
item
);
explicit
FirItem
(
FirItem
*
item
);
FirItem
(
uint32_t
ssrc
,
uint8_t
sequence_number
);
FirItem
(
uint32_t
ssrc
,
uint8_t
sequence_number
);
// Virtual methods inherited from FeedbackItem
// Virtual methods inherited from FeedbackItem
...
...
worker/include/RTC/RTCP/FeedbackPsLei.h
浏览文件 @
aea3b7a2
...
@@ -31,9 +31,9 @@ namespace RTC { namespace RTCP
...
@@ -31,9 +31,9 @@ namespace RTC { namespace RTCP
static
PsLeiItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
PsLeiItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
PsLeiItem
(
Header
*
header
);
explicit
PsLeiItem
(
Header
*
header
);
PsLeiItem
(
PsLeiItem
*
item
);
explicit
PsLeiItem
(
PsLeiItem
*
item
);
PsLeiItem
(
uint32_t
ssrc
);
explicit
PsLeiItem
(
uint32_t
ssrc
);
// Virtual methods inherited from FeedbackItem
// Virtual methods inherited from FeedbackItem
void
Dump
()
override
;
void
Dump
()
override
;
...
...
worker/include/RTC/RTCP/FeedbackPsPli.h
浏览文件 @
aea3b7a2
...
@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP
...
@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP
public
:
public
:
// Parsed Report. Points to an external data.
// Parsed Report. Points to an external data.
FeedbackPsPliPacket
(
CommonHeader
*
commonHeader
);
explicit
FeedbackPsPliPacket
(
CommonHeader
*
commonHeader
);
FeedbackPsPliPacket
(
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
);
FeedbackPsPliPacket
(
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
);
void
Dump
()
override
;
void
Dump
()
override
;
...
...
worker/include/RTC/RTCP/FeedbackPsRpsi.h
浏览文件 @
aea3b7a2
...
@@ -41,8 +41,8 @@ namespace RTC { namespace RTCP
...
@@ -41,8 +41,8 @@ namespace RTC { namespace RTCP
static
RpsiItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
RpsiItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
RpsiItem
(
Header
*
header
);
explicit
RpsiItem
(
Header
*
header
);
RpsiItem
(
RpsiItem
*
item
);
explicit
RpsiItem
(
RpsiItem
*
item
);
RpsiItem
(
uint8_t
payload_type
,
uint8_t
*
bit_string
,
size_t
length
);
RpsiItem
(
uint8_t
payload_type
,
uint8_t
*
bit_string
,
size_t
length
);
// Virtual methods inherited from FeedbackItem
// Virtual methods inherited from FeedbackItem
...
@@ -70,8 +70,7 @@ namespace RTC { namespace RTCP
...
@@ -70,8 +70,7 @@ namespace RTC { namespace RTCP
inline
inline
RpsiItem
::
RpsiItem
(
RpsiItem
*
item
)
:
RpsiItem
::
RpsiItem
(
RpsiItem
*
item
)
:
header
(
item
->
header
)
header
(
item
->
header
)
{
{}
}
inline
inline
size_t
RpsiItem
::
GetSize
()
size_t
RpsiItem
::
GetSize
()
...
...
worker/include/RTC/RTCP/FeedbackPsSli.h
浏览文件 @
aea3b7a2
...
@@ -31,8 +31,8 @@ namespace RTC { namespace RTCP
...
@@ -31,8 +31,8 @@ namespace RTC { namespace RTCP
static
SliItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
SliItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
SliItem
(
Header
*
header
);
explicit
SliItem
(
Header
*
header
);
SliItem
(
SliItem
*
item
);
explicit
SliItem
(
SliItem
*
item
);
SliItem
(
uint16_t
first
,
uint16_t
number
,
uint8_t
pictureId
);
SliItem
(
uint16_t
first
,
uint16_t
number
,
uint8_t
pictureId
);
// Virtual methods inherited from FeedbackItem
// Virtual methods inherited from FeedbackItem
...
...
worker/include/RTC/RTCP/FeedbackPsTst.h
浏览文件 @
aea3b7a2
...
@@ -38,8 +38,8 @@ namespace RTC { namespace RTCP
...
@@ -38,8 +38,8 @@ namespace RTC { namespace RTCP
static
TstItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
TstItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
TstItem
(
Header
*
header
);
explicit
TstItem
(
Header
*
header
);
TstItem
(
TstItem
*
item
);
explicit
TstItem
(
TstItem
*
item
);
TstItem
(
uint32_t
ssrc
,
uint8_t
sequenceNumber
,
uint8_t
index
);
TstItem
(
uint32_t
ssrc
,
uint8_t
sequenceNumber
,
uint8_t
index
);
// Virtual methods inherited from FeedbackItem
// Virtual methods inherited from FeedbackItem
...
...
worker/include/RTC/RTCP/FeedbackPsVbcm.h
浏览文件 @
aea3b7a2
...
@@ -42,8 +42,8 @@ namespace RTC { namespace RTCP
...
@@ -42,8 +42,8 @@ namespace RTC { namespace RTCP
static
VbcmItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
VbcmItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
VbcmItem
(
Header
*
header
);
explicit
VbcmItem
(
Header
*
header
);
VbcmItem
(
VbcmItem
*
item
);
explicit
VbcmItem
(
VbcmItem
*
item
);
VbcmItem
(
uint32_t
ssrc
,
uint8_t
sequence_number
,
uint8_t
payload_type
,
uint16_t
length
,
uint8_t
*
value
);
VbcmItem
(
uint32_t
ssrc
,
uint8_t
sequence_number
,
uint8_t
payload_type
,
uint16_t
length
,
uint8_t
*
value
);
// Virtual methods inherited from FeedbackItem
// Virtual methods inherited from FeedbackItem
...
...
worker/include/RTC/RTCP/FeedbackRtp.h
浏览文件 @
aea3b7a2
...
@@ -20,7 +20,7 @@ namespace RTC { namespace RTCP
...
@@ -20,7 +20,7 @@ namespace RTC { namespace RTCP
public
:
public
:
// Parsed Report. Points to an external data.
// Parsed Report. Points to an external data.
FeedbackRtpItemPacket
(
CommonHeader
*
commonHeader
);
explicit
FeedbackRtpItemPacket
(
CommonHeader
*
commonHeader
);
FeedbackRtpItemPacket
(
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
=
0
);
FeedbackRtpItemPacket
(
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
=
0
);
void
Dump
()
override
;
void
Dump
()
override
;
...
...
worker/include/RTC/RTCP/FeedbackRtpEcn.h
浏览文件 @
aea3b7a2
...
@@ -48,8 +48,8 @@ namespace RTC { namespace RTCP
...
@@ -48,8 +48,8 @@ namespace RTC { namespace RTCP
static
EcnItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
EcnItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
EcnItem
(
Header
*
header
);
explicit
EcnItem
(
Header
*
header
);
EcnItem
(
EcnItem
*
item
);
explicit
EcnItem
(
EcnItem
*
item
);
// Virtual methods inherited from FeedbackItem
// Virtual methods inherited from FeedbackItem
void
Dump
()
override
;
void
Dump
()
override
;
...
...
worker/include/RTC/RTCP/FeedbackRtpNack.h
浏览文件 @
aea3b7a2
...
@@ -32,8 +32,8 @@ namespace RTC { namespace RTCP
...
@@ -32,8 +32,8 @@ namespace RTC { namespace RTCP
static
NackItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
NackItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
NackItem
(
Header
*
header
);
explicit
NackItem
(
Header
*
header
);
NackItem
(
NackItem
*
item
);
explicit
NackItem
(
NackItem
*
item
);
NackItem
(
uint16_t
packetId
,
uint16_t
lostPacketBitmask
);
NackItem
(
uint16_t
packetId
,
uint16_t
lostPacketBitmask
);
// Virtual methods inherited from FeedbackItem
// Virtual methods inherited from FeedbackItem
...
...
worker/include/RTC/RTCP/FeedbackRtpSrReq.h
浏览文件 @
aea3b7a2
...
@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP
...
@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP
public
:
public
:
// Parsed Report. Points to an external data.
// Parsed Report. Points to an external data.
FeedbackRtpSrReqPacket
(
CommonHeader
*
commonHeader
);
explicit
FeedbackRtpSrReqPacket
(
CommonHeader
*
commonHeader
);
FeedbackRtpSrReqPacket
(
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
);
FeedbackRtpSrReqPacket
(
uint32_t
sender_ssrc
,
uint32_t
media_ssrc
);
void
Dump
()
override
;
void
Dump
()
override
;
...
...
worker/include/RTC/RTCP/FeedbackRtpTllei.h
浏览文件 @
aea3b7a2
...
@@ -32,8 +32,8 @@ namespace RTC { namespace RTCP
...
@@ -32,8 +32,8 @@ namespace RTC { namespace RTCP
static
TlleiItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
TlleiItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
TlleiItem
(
Header
*
header
);
explicit
TlleiItem
(
Header
*
header
);
TlleiItem
(
TlleiItem
*
item
);
explicit
TlleiItem
(
TlleiItem
*
item
);
TlleiItem
(
uint16_t
packetId
,
uint16_t
lostPacketBitmask
);
TlleiItem
(
uint16_t
packetId
,
uint16_t
lostPacketBitmask
);
// Virtual methods inherited from FeedbackItem
// Virtual methods inherited from FeedbackItem
...
...
worker/include/RTC/RTCP/FeedbackRtpTmmb.h
浏览文件 @
aea3b7a2
...
@@ -36,8 +36,8 @@ namespace RTC { namespace RTCP
...
@@ -36,8 +36,8 @@ namespace RTC { namespace RTCP
static
TmmbItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
TmmbItem
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
TmmbItem
(
Header
*
header
);
explicit
TmmbItem
(
Header
*
header
);
TmmbItem
(
TmmbItem
*
item
);
explicit
TmmbItem
(
TmmbItem
*
item
);
TmmbItem
(
uint32_t
ssrc
,
uint64_t
bitrate
,
uint32_t
overhead
);
TmmbItem
(
uint32_t
ssrc
,
uint64_t
bitrate
,
uint32_t
overhead
);
// Virtual methods inherited from FeedbackItem
// Virtual methods inherited from FeedbackItem
...
...
worker/include/RTC/RTCP/Packet.h
浏览文件 @
aea3b7a2
...
@@ -59,7 +59,7 @@ namespace RTC { namespace RTCP
...
@@ -59,7 +59,7 @@ namespace RTC { namespace RTCP
static
Packet
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
Packet
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
Packet
(
Type
type
);
explicit
Packet
(
Type
type
);
virtual
~
Packet
();
virtual
~
Packet
();
void
SetNext
(
Packet
*
packet
);
void
SetNext
(
Packet
*
packet
);
...
...
worker/include/RTC/RTCP/ReceiverReport.h
浏览文件 @
aea3b7a2
...
@@ -28,8 +28,8 @@ namespace RTC { namespace RTCP
...
@@ -28,8 +28,8 @@ namespace RTC { namespace RTCP
public
:
public
:
// Parsed Report. Points to an external data.
// Parsed Report. Points to an external data.
ReceiverReport
(
Header
*
header
);
explicit
ReceiverReport
(
Header
*
header
);
ReceiverReport
(
ReceiverReport
*
report
);
explicit
ReceiverReport
(
ReceiverReport
*
report
);
// Locally generated Report. Holds the data internally.
// Locally generated Report. Holds the data internally.
ReceiverReport
();
ReceiverReport
();
...
...
worker/include/RTC/RTCP/Sdes.h
浏览文件 @
aea3b7a2
...
@@ -41,8 +41,8 @@ namespace RTC { namespace RTCP
...
@@ -41,8 +41,8 @@ namespace RTC { namespace RTCP
static
const
std
::
string
&
Type2String
(
Type
type
);
static
const
std
::
string
&
Type2String
(
Type
type
);
public
:
public
:
SdesItem
(
Header
*
header
);
explicit
SdesItem
(
Header
*
header
);
SdesItem
(
SdesItem
*
item
);
explicit
SdesItem
(
SdesItem
*
item
);
SdesItem
(
Type
type
,
size_t
len
,
const
char
*
value
);
SdesItem
(
Type
type
,
size_t
len
,
const
char
*
value
);
~
SdesItem
();
~
SdesItem
();
...
@@ -73,8 +73,8 @@ namespace RTC { namespace RTCP
...
@@ -73,8 +73,8 @@ namespace RTC { namespace RTCP
static
SdesChunk
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
static
SdesChunk
*
Parse
(
const
uint8_t
*
data
,
size_t
len
);
public
:
public
:
SdesChunk
(
const
uint32_t
ssrc
);
explicit
SdesChunk
(
const
uint32_t
ssrc
);
SdesChunk
(
SdesChunk
*
chunk
);
explicit
SdesChunk
(
SdesChunk
*
chunk
);
~
SdesChunk
();
~
SdesChunk
();
void
Dump
();
void
Dump
();
...
...
worker/include/RTC/RTCP/SenderReport.h
浏览文件 @
aea3b7a2
...
@@ -26,8 +26,8 @@ namespace RTC { namespace RTCP
...
@@ -26,8 +26,8 @@ namespace RTC { namespace RTCP
public
:
public
:
// Parsed Report. Points to an external data.
// Parsed Report. Points to an external data.
SenderReport
(
Header
*
header
);
explicit
SenderReport
(
Header
*
header
);
SenderReport
(
SenderReport
*
report
);
explicit
SenderReport
(
SenderReport
*
report
);
// Locally generated Report. Holds the data internally.
// Locally generated Report. Holds the data internally.
SenderReport
();
SenderReport
();
...
...
worker/include/RTC/RtpDictionaries.h
浏览文件 @
aea3b7a2
...
@@ -125,7 +125,7 @@ namespace RTC
...
@@ -125,7 +125,7 @@ namespace RTC
class
RtcpFeedback
class
RtcpFeedback
{
{
public
:
public
:
RtcpFeedback
(
Json
::
Value
&
data
);
explicit
RtcpFeedback
(
Json
::
Value
&
data
);
Json
::
Value
toJson
();
Json
::
Value
toJson
();
...
@@ -166,7 +166,7 @@ namespace RTC
...
@@ -166,7 +166,7 @@ namespace RTC
{
{
public
:
public
:
RtpFecParameters
()
{};
RtpFecParameters
()
{};
RtpFecParameters
(
Json
::
Value
&
data
);
explicit
RtpFecParameters
(
Json
::
Value
&
data
);
Json
::
Value
toJson
();
Json
::
Value
toJson
();
...
@@ -179,7 +179,7 @@ namespace RTC
...
@@ -179,7 +179,7 @@ namespace RTC
{
{
public
:
public
:
RtpRtxParameters
()
{};
RtpRtxParameters
()
{};
RtpRtxParameters
(
Json
::
Value
&
data
);
explicit
RtpRtxParameters
(
Json
::
Value
&
data
);
Json
::
Value
toJson
();
Json
::
Value
toJson
();
...
@@ -191,7 +191,7 @@ namespace RTC
...
@@ -191,7 +191,7 @@ namespace RTC
{
{
public
:
public
:
RtpEncodingParameters
()
{};
RtpEncodingParameters
()
{};
RtpEncodingParameters
(
Json
::
Value
&
data
);
explicit
RtpEncodingParameters
(
Json
::
Value
&
data
);
Json
::
Value
toJson
();
Json
::
Value
toJson
();
...
@@ -214,7 +214,7 @@ namespace RTC
...
@@ -214,7 +214,7 @@ namespace RTC
class
RtpHeaderExtensionParameters
class
RtpHeaderExtensionParameters
{
{
public
:
public
:
RtpHeaderExtensionParameters
(
Json
::
Value
&
data
);
explicit
RtpHeaderExtensionParameters
(
Json
::
Value
&
data
);
Json
::
Value
toJson
();
Json
::
Value
toJson
();
...
@@ -229,7 +229,7 @@ namespace RTC
...
@@ -229,7 +229,7 @@ namespace RTC
{
{
public
:
public
:
RtcpParameters
()
{};
RtcpParameters
()
{};
RtcpParameters
(
Json
::
Value
&
data
);
explicit
RtcpParameters
(
Json
::
Value
&
data
);
Json
::
Value
toJson
();
Json
::
Value
toJson
();
...
@@ -242,8 +242,8 @@ namespace RTC
...
@@ -242,8 +242,8 @@ namespace RTC
class
RtpParameters
class
RtpParameters
{
{
public
:
public
:
RtpParameters
(
Json
::
Value
&
data
);
explicit
RtpParameters
(
Json
::
Value
&
data
);
RtpParameters
(
const
RtpParameters
*
RtpParameters
);
explicit
RtpParameters
(
const
RtpParameters
*
RtpParameters
);
Json
::
Value
toJson
();
Json
::
Value
toJson
();
...
@@ -264,7 +264,7 @@ namespace RTC
...
@@ -264,7 +264,7 @@ namespace RTC
class
RtpHeaderExtension
class
RtpHeaderExtension
{
{
public
:
public
:
RtpHeaderExtension
(
Json
::
Value
&
data
);
explicit
RtpHeaderExtension
(
Json
::
Value
&
data
);
Json
::
Value
toJson
();
Json
::
Value
toJson
();
...
...
worker/include/RTC/RtpStream.h
浏览文件 @
aea3b7a2
...
@@ -24,7 +24,7 @@ namespace RTC
...
@@ -24,7 +24,7 @@ namespace RTC
};
};
public
:
public
:
RtpStream
(
size_t
bufferSize
);
explicit
RtpStream
(
size_t
bufferSize
);
~
RtpStream
();
~
RtpStream
();
bool
ReceivePacket
(
RTC
::
RtpPacket
*
packet
);
bool
ReceivePacket
(
RTC
::
RtpPacket
*
packet
);
...
...
worker/include/RTC/TransportTuple.h
浏览文件 @
aea3b7a2
...
@@ -20,7 +20,7 @@ namespace RTC
...
@@ -20,7 +20,7 @@ namespace RTC
public
:
public
:
TransportTuple
(
RTC
::
UdpSocket
*
udpSocket
,
const
struct
sockaddr
*
udpRemoteAddr
);
TransportTuple
(
RTC
::
UdpSocket
*
udpSocket
,
const
struct
sockaddr
*
udpRemoteAddr
);
TransportTuple
(
RTC
::
TcpConnection
*
tcpConnection
);
explicit
TransportTuple
(
RTC
::
TcpConnection
*
tcpConnection
);
void
Close
();
void
Close
();
Json
::
Value
toJson
();
Json
::
Value
toJson
();
...
...
worker/include/handles/SignalsHandler.h
浏览文件 @
aea3b7a2
...
@@ -15,7 +15,7 @@ public:
...
@@ -15,7 +15,7 @@ public:
};
};
public
:
public
:
SignalsHandler
(
Listener
*
listener
);
explicit
SignalsHandler
(
Listener
*
listener
);
void
Close
();
void
Close
();
void
AddSignal
(
int
signum
,
std
::
string
name
);
void
AddSignal
(
int
signum
,
std
::
string
name
);
...
...
worker/include/handles/TcpConnection.h
浏览文件 @
aea3b7a2
...
@@ -24,7 +24,7 @@ public:
...
@@ -24,7 +24,7 @@ public:
};
};
public
:
public
:
TcpConnection
(
size_t
bufferSize
);
explicit
TcpConnection
(
size_t
bufferSize
);
virtual
~
TcpConnection
();
virtual
~
TcpConnection
();
void
Close
();
void
Close
();
...
...
worker/include/handles/Timer.h
浏览文件 @
aea3b7a2
...
@@ -14,7 +14,7 @@ public:
...
@@ -14,7 +14,7 @@ public:
};
};
public
:
public
:
Timer
(
Listener
*
listener
);
explicit
Timer
(
Listener
*
listener
);
void
Close
();
void
Close
();
void
Start
(
uint64_t
timeout
);
void
Start
(
uint64_t
timeout
);
...
...
worker/include/handles/UdpSocket.h
浏览文件 @
aea3b7a2
...
@@ -24,7 +24,7 @@ public:
...
@@ -24,7 +24,7 @@ public:
/**
/**
* uvHandle must be an already initialized and binded uv_udp_t pointer.
* uvHandle must be an already initialized and binded uv_udp_t pointer.
*/
*/
UdpSocket
(
uv_udp_t
*
uvHandle
);
explicit
UdpSocket
(
uv_udp_t
*
uvHandle
);
virtual
~
UdpSocket
();
virtual
~
UdpSocket
();
void
Close
();
void
Close
();
...
...
worker/src/Logger.cpp
浏览文件 @
aea3b7a2
...
@@ -10,7 +10,7 @@ char Logger::buffer[MS_LOGGER_BUFFER_SIZE];
...
@@ -10,7 +10,7 @@ char Logger::buffer[MS_LOGGER_BUFFER_SIZE];
/* Class methods. */
/* Class methods. */
void
Logger
::
Init
(
const
std
::
string
id
,
Channel
::
UnixStreamSocket
*
channel
)
void
Logger
::
Init
(
const
std
::
string
&
id
,
Channel
::
UnixStreamSocket
*
channel
)
{
{
Logger
::
id
=
id
;
Logger
::
id
=
id
;
Logger
::
channel
=
channel
;
Logger
::
channel
=
channel
;
...
...
worker/src/RTC/IceServer.cpp
浏览文件 @
aea3b7a2
...
@@ -7,7 +7,7 @@ namespace RTC
...
@@ -7,7 +7,7 @@ namespace RTC
{
{
/* Instance methods. */
/* Instance methods. */
IceServer
::
IceServer
(
Listener
*
listener
,
const
std
::
string
&
usernameFragment
,
const
std
::
string
password
)
:
IceServer
::
IceServer
(
Listener
*
listener
,
const
std
::
string
&
usernameFragment
,
const
std
::
string
&
password
)
:
listener
(
listener
),
listener
(
listener
),
usernameFragment
(
usernameFragment
),
usernameFragment
(
usernameFragment
),
password
(
password
)
password
(
password
)
...
...
worker/src/RTC/RtpDictionaries/RtpParameters.cpp
浏览文件 @
aea3b7a2
...
@@ -94,17 +94,16 @@ namespace RTC
...
@@ -94,17 +94,16 @@ namespace RTC
ValidateEncodings
();
ValidateEncodings
();
}
}
RtpParameters
::
RtpParameters
(
const
RtpParameters
*
rtpParameters
)
RtpParameters
::
RtpParameters
(
const
RtpParameters
*
rtpParameters
)
:
muxId
(
rtpParameters
->
muxId
),
codecs
(
rtpParameters
->
codecs
),
encodings
(
rtpParameters
->
encodings
),
headerExtensions
(
rtpParameters
->
headerExtensions
),
rtcp
(
rtpParameters
->
rtcp
),
hasRtcp
(
rtpParameters
->
hasRtcp
),
userParameters
(
rtpParameters
->
userParameters
)
{
{
MS_TRACE
();
MS_TRACE
();
this
->
muxId
=
rtpParameters
->
muxId
;
this
->
codecs
=
rtpParameters
->
codecs
;
this
->
encodings
=
rtpParameters
->
encodings
;
this
->
headerExtensions
=
rtpParameters
->
headerExtensions
;
this
->
rtcp
=
rtpParameters
->
rtcp
;
this
->
hasRtcp
=
rtpParameters
->
hasRtcp
;
this
->
userParameters
=
rtpParameters
->
userParameters
;
}
}
Json
::
Value
RtpParameters
::
toJson
()
Json
::
Value
RtpParameters
::
toJson
()
...
...
worker/src/RTC/TcpConnection.cpp
浏览文件 @
aea3b7a2
...
@@ -10,7 +10,7 @@ namespace RTC
...
@@ -10,7 +10,7 @@ namespace RTC
/* Instance methods. */
/* Instance methods. */
TcpConnection
::
TcpConnection
(
Listener
*
listener
,
size_t
bufferSize
)
:
TcpConnection
::
TcpConnection
(
Listener
*
listener
,
size_t
bufferSize
)
:
::
TcpConnection
(
bufferSize
),
::
TcpConnection
::
TcpConnection
(
bufferSize
),
listener
(
listener
)
listener
(
listener
)
{
{
MS_TRACE
();
MS_TRACE
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论