Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
7e1a995e
提交
7e1a995e
authored
2月 22, 2024
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cosmetic: apply consistent tabulation (no tabulation) to values in Dump() methods
上级
fca4f5b1
隐藏空白字符变更
内嵌
并排
正在显示
29 个修改的文件
包含
163 行增加
和
168 行删除
+163
-168
H264.cpp
worker/src/RTC/Codecs/H264.cpp
+6
-6
H264_SVC.cpp
worker/src/RTC/Codecs/H264_SVC.cpp
+7
-7
Opus.cpp
worker/src/RTC/Codecs/Opus.cpp
+3
-3
VP8.cpp
worker/src/RTC/Codecs/VP8.cpp
+17
-17
VP9.cpp
worker/src/RTC/Codecs/VP9.cpp
+15
-15
Bye.cpp
worker/src/RTC/RTCP/Bye.cpp
+2
-2
Feedback.cpp
worker/src/RTC/RTCP/Feedback.cpp
+3
-3
FeedbackPsFir.cpp
worker/src/RTC/RTCP/FeedbackPsFir.cpp
+2
-2
FeedbackPsLei.cpp
worker/src/RTC/RTCP/FeedbackPsLei.cpp
+1
-1
FeedbackPsRemb.cpp
worker/src/RTC/RTCP/FeedbackPsRemb.cpp
+2
-2
FeedbackPsRpsi.cpp
worker/src/RTC/RTCP/FeedbackPsRpsi.cpp
+3
-3
FeedbackPsSli.cpp
worker/src/RTC/RTCP/FeedbackPsSli.cpp
+3
-3
FeedbackPsTst.cpp
worker/src/RTC/RTCP/FeedbackPsTst.cpp
+3
-3
FeedbackPsVbcm.cpp
worker/src/RTC/RTCP/FeedbackPsVbcm.cpp
+4
-4
FeedbackRtpEcn.cpp
worker/src/RTC/RTCP/FeedbackRtpEcn.cpp
+7
-7
FeedbackRtpNack.cpp
worker/src/RTC/RTCP/FeedbackRtpNack.cpp
+2
-2
FeedbackRtpTmmb.cpp
worker/src/RTC/RTCP/FeedbackRtpTmmb.cpp
+3
-3
FeedbackRtpTransport.cpp
worker/src/RTC/RTCP/FeedbackRtpTransport.cpp
+7
-7
ReceiverReport.cpp
worker/src/RTC/RTCP/ReceiverReport.cpp
+7
-7
Sdes.cpp
worker/src/RTC/RTCP/Sdes.cpp
+4
-4
SenderReport.cpp
worker/src/RTC/RTCP/SenderReport.cpp
+6
-6
XrDelaySinceLastRr.cpp
worker/src/RTC/RTCP/XrDelaySinceLastRr.cpp
+6
-6
XrReceiverReferenceTime.cpp
worker/src/RTC/RTCP/XrReceiverReferenceTime.cpp
+5
-5
RtpPacket.cpp
worker/src/RTC/RtpPacket.cpp
+25
-28
StunPacket.cpp
worker/src/RTC/StunPacket.cpp
+2
-2
TransportTuple.cpp
worker/src/RTC/TransportTuple.cpp
+6
-6
TcpConnectionHandle.cpp
worker/src/handles/TcpConnectionHandle.cpp
+5
-5
TcpServerHandle.cpp
worker/src/handles/TcpServerHandle.cpp
+4
-6
UdpSocketHandle.cpp
worker/src/handles/UdpSocketHandle.cpp
+3
-3
没有找到文件。
worker/src/RTC/Codecs/H264.cpp
浏览文件 @
7e1a995e
...
...
@@ -161,7 +161,7 @@ namespace RTC
{
MS_TRACE
();
MS_DUMP
(
"<PayloadDescriptor>"
);
MS_DUMP
(
"<
H264::
PayloadDescriptor>"
);
MS_DUMP
(
" s:%"
PRIu8
"|e:%"
PRIu8
"|i:%"
PRIu8
"|d:%"
PRIu8
"|b:%"
PRIu8
,
this
->
s
,
...
...
@@ -171,18 +171,18 @@ namespace RTC
this
->
b
);
if
(
this
->
hasTid
)
{
MS_DUMP
(
" tid
: %"
PRIu8
,
this
->
tid
);
MS_DUMP
(
" tid: %"
PRIu8
,
this
->
tid
);
}
if
(
this
->
hasLid
)
{
MS_DUMP
(
" lid
: %"
PRIu8
,
this
->
lid
);
MS_DUMP
(
" lid: %"
PRIu8
,
this
->
lid
);
}
if
(
this
->
hasTl0picidx
)
{
MS_DUMP
(
" tl0picidx
: %"
PRIu8
,
this
->
tl0picidx
);
MS_DUMP
(
" tl0picidx: %"
PRIu8
,
this
->
tl0picidx
);
}
MS_DUMP
(
" isKeyFrame
: %s"
,
this
->
isKeyFrame
?
"true"
:
"false"
);
MS_DUMP
(
"</PayloadDescriptor>"
);
MS_DUMP
(
" isKeyFrame: %s"
,
this
->
isKeyFrame
?
"true"
:
"false"
);
MS_DUMP
(
"</
H264::
PayloadDescriptor>"
);
}
H264
::
PayloadDescriptorHandler
::
PayloadDescriptorHandler
(
H264
::
PayloadDescriptor
*
payloadDescriptor
)
...
...
worker/src/RTC/Codecs/H264_SVC.cpp
浏览文件 @
7e1a995e
...
...
@@ -251,7 +251,7 @@ namespace RTC
{
MS_TRACE
();
MS_DUMP
(
"<PayloadDescriptor>"
);
MS_DUMP
(
"<
H264_SVC::
PayloadDescriptor>"
);
MS_DUMP
(
" s:%"
PRIu8
"|e:%"
PRIu8
"|i:%"
PRIu8
"|d:%"
PRIu8
"|b:%"
PRIu8
,
this
->
s
,
...
...
@@ -259,12 +259,12 @@ namespace RTC
this
->
i
,
this
->
d
,
this
->
b
);
MS_DUMP
(
" hasSlIndex
: %s"
,
this
->
hasSlIndex
?
"true"
:
"false"
);
MS_DUMP
(
" hasTlIndex
: %s"
,
this
->
hasTlIndex
?
"true"
:
"false"
);
MS_DUMP
(
" tl0picidx
: %"
PRIu8
,
this
->
tl0picidx
);
MS_DUMP
(
" noIntLayerPredFlag
: %"
PRIu8
,
this
->
noIntLayerPredFlag
);
MS_DUMP
(
" isKeyFrame
: %s"
,
this
->
isKeyFrame
?
"true"
:
"false"
);
MS_DUMP
(
"</PayloadDescriptor>"
);
MS_DUMP
(
" hasSlIndex: %s"
,
this
->
hasSlIndex
?
"true"
:
"false"
);
MS_DUMP
(
" hasTlIndex: %s"
,
this
->
hasTlIndex
?
"true"
:
"false"
);
MS_DUMP
(
" tl0picidx: %"
PRIu8
,
this
->
tl0picidx
);
MS_DUMP
(
" noIntLayerPredFlag: %"
PRIu8
,
this
->
noIntLayerPredFlag
);
MS_DUMP
(
" isKeyFrame: %s"
,
this
->
isKeyFrame
?
"true"
:
"false"
);
MS_DUMP
(
"</
H264_SVC::
PayloadDescriptor>"
);
}
H264_SVC
::
PayloadDescriptorHandler
::
PayloadDescriptorHandler
(
...
...
worker/src/RTC/Codecs/Opus.cpp
浏览文件 @
7e1a995e
...
...
@@ -45,9 +45,9 @@ namespace RTC
{
MS_TRACE
();
MS_DUMP
(
"<PayloadDescriptor>"
);
MS_DUMP
(
" isDtx
: %s"
,
this
->
isDtx
?
"true"
:
"false"
);
MS_DUMP
(
"</PayloadDescriptor>"
);
MS_DUMP
(
"<
Opus::
PayloadDescriptor>"
);
MS_DUMP
(
" isDtx: %s"
,
this
->
isDtx
?
"true"
:
"false"
);
MS_DUMP
(
"</
Opus::
PayloadDescriptor>"
);
}
Opus
::
PayloadDescriptorHandler
::
PayloadDescriptorHandler
(
Opus
::
PayloadDescriptor
*
payloadDescriptor
)
...
...
worker/src/RTC/Codecs/VP8.cpp
浏览文件 @
7e1a995e
...
...
@@ -167,25 +167,25 @@ namespace RTC
{
MS_TRACE
();
MS_DUMP
(
"<PayloadDescriptor>"
);
MS_DUMP
(
"<
VP8::
PayloadDescriptor>"
);
MS_DUMP
(
" i:%"
PRIu8
"|l:%"
PRIu8
"|t:%"
PRIu8
"|k:%"
PRIu8
,
this
->
i
,
this
->
l
,
this
->
t
,
this
->
k
);
MS_DUMP
(
" extended
: %"
PRIu8
,
this
->
extended
);
MS_DUMP
(
" nonReference
: %"
PRIu8
,
this
->
nonReference
);
MS_DUMP
(
" start
: %"
PRIu8
,
this
->
start
);
MS_DUMP
(
" partitionIndex
: %"
PRIu8
,
this
->
partitionIndex
);
MS_DUMP
(
" pictureId
: %"
PRIu16
,
this
->
pictureId
);
MS_DUMP
(
" tl0PictureIndex
: %"
PRIu8
,
this
->
tl0PictureIndex
);
MS_DUMP
(
" tlIndex
: %"
PRIu8
,
this
->
tlIndex
);
MS_DUMP
(
" y
: %"
PRIu8
,
this
->
y
);
MS_DUMP
(
" keyIndex
: %"
PRIu8
,
this
->
keyIndex
);
MS_DUMP
(
" isKeyFrame
: %s"
,
this
->
isKeyFrame
?
"true"
:
"false"
);
MS_DUMP
(
" hasPictureId
: %s"
,
this
->
hasPictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasOneBytePictureId
: %s"
,
this
->
hasOneBytePictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasTwoBytesPictureId
: %s"
,
this
->
hasTwoBytesPictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasTl0PictureIndex
: %s"
,
this
->
hasTl0PictureIndex
?
"true"
:
"false"
);
MS_DUMP
(
" hasTlIndex
: %s"
,
this
->
hasTlIndex
?
"true"
:
"false"
);
MS_DUMP
(
"</PayloadDescriptor>"
);
MS_DUMP
(
" extended: %"
PRIu8
,
this
->
extended
);
MS_DUMP
(
" nonReference: %"
PRIu8
,
this
->
nonReference
);
MS_DUMP
(
" start: %"
PRIu8
,
this
->
start
);
MS_DUMP
(
" partitionIndex: %"
PRIu8
,
this
->
partitionIndex
);
MS_DUMP
(
" pictureId: %"
PRIu16
,
this
->
pictureId
);
MS_DUMP
(
" tl0PictureIndex: %"
PRIu8
,
this
->
tl0PictureIndex
);
MS_DUMP
(
" tlIndex: %"
PRIu8
,
this
->
tlIndex
);
MS_DUMP
(
" y: %"
PRIu8
,
this
->
y
);
MS_DUMP
(
" keyIndex: %"
PRIu8
,
this
->
keyIndex
);
MS_DUMP
(
" isKeyFrame: %s"
,
this
->
isKeyFrame
?
"true"
:
"false"
);
MS_DUMP
(
" hasPictureId: %s"
,
this
->
hasPictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasOneBytePictureId: %s"
,
this
->
hasOneBytePictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasTwoBytesPictureId: %s"
,
this
->
hasTwoBytesPictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasTl0PictureIndex: %s"
,
this
->
hasTl0PictureIndex
?
"true"
:
"false"
);
MS_DUMP
(
" hasTlIndex: %s"
,
this
->
hasTlIndex
?
"true"
:
"false"
);
MS_DUMP
(
"</
VP8::
PayloadDescriptor>"
);
}
void
VP8
::
PayloadDescriptor
::
Encode
(
uint8_t
*
data
,
uint16_t
pictureId
,
uint8_t
tl0PictureIndex
)
const
...
...
worker/src/RTC/Codecs/VP9.cpp
浏览文件 @
7e1a995e
...
...
@@ -146,7 +146,7 @@ namespace RTC
{
MS_TRACE
();
MS_DUMP
(
"<PayloadDescriptor>"
);
MS_DUMP
(
"<
VP9::
PayloadDescriptor>"
);
MS_DUMP
(
" i:%"
PRIu8
"|p:%"
PRIu8
"|l:%"
PRIu8
"|f:%"
PRIu8
"|b:%"
PRIu8
"|e:%"
PRIu8
"|v:%"
PRIu8
,
this
->
i
,
...
...
@@ -156,20 +156,20 @@ namespace RTC
this
->
b
,
this
->
e
,
this
->
v
);
MS_DUMP
(
" pictureId
: %"
PRIu16
,
this
->
pictureId
);
MS_DUMP
(
" slIndex
: %"
PRIu8
,
this
->
slIndex
);
MS_DUMP
(
" tlIndex
: %"
PRIu8
,
this
->
tlIndex
);
MS_DUMP
(
" tl0PictureIndex
: %"
PRIu8
,
this
->
tl0PictureIndex
);
MS_DUMP
(
" interLayerDependency
: %"
PRIu8
,
this
->
interLayerDependency
);
MS_DUMP
(
" switchingUpPoint
: %"
PRIu8
,
this
->
switchingUpPoint
);
MS_DUMP
(
" isKeyFrame
: %s"
,
this
->
isKeyFrame
?
"true"
:
"false"
);
MS_DUMP
(
" hasPictureId
: %s"
,
this
->
hasPictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasOneBytePictureId
: %s"
,
this
->
hasOneBytePictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasTwoBytesPictureId
: %s"
,
this
->
hasTwoBytesPictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasTl0PictureIndex
: %s"
,
this
->
hasTl0PictureIndex
?
"true"
:
"false"
);
MS_DUMP
(
" hasSlIndex
: %s"
,
this
->
hasSlIndex
?
"true"
:
"false"
);
MS_DUMP
(
" hasTlIndex
: %s"
,
this
->
hasTlIndex
?
"true"
:
"false"
);
MS_DUMP
(
"</PayloadDescriptor>"
);
MS_DUMP
(
" pictureId: %"
PRIu16
,
this
->
pictureId
);
MS_DUMP
(
" slIndex: %"
PRIu8
,
this
->
slIndex
);
MS_DUMP
(
" tlIndex: %"
PRIu8
,
this
->
tlIndex
);
MS_DUMP
(
" tl0PictureIndex: %"
PRIu8
,
this
->
tl0PictureIndex
);
MS_DUMP
(
" interLayerDependency: %"
PRIu8
,
this
->
interLayerDependency
);
MS_DUMP
(
" switchingUpPoint: %"
PRIu8
,
this
->
switchingUpPoint
);
MS_DUMP
(
" isKeyFrame: %s"
,
this
->
isKeyFrame
?
"true"
:
"false"
);
MS_DUMP
(
" hasPictureId: %s"
,
this
->
hasPictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasOneBytePictureId: %s"
,
this
->
hasOneBytePictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasTwoBytesPictureId: %s"
,
this
->
hasTwoBytesPictureId
?
"true"
:
"false"
);
MS_DUMP
(
" hasTl0PictureIndex: %s"
,
this
->
hasTl0PictureIndex
?
"true"
:
"false"
);
MS_DUMP
(
" hasSlIndex: %s"
,
this
->
hasSlIndex
?
"true"
:
"false"
);
MS_DUMP
(
" hasTlIndex: %s"
,
this
->
hasTlIndex
?
"true"
:
"false"
);
MS_DUMP
(
"</
VP9::
PayloadDescriptor>"
);
}
VP9
::
PayloadDescriptorHandler
::
PayloadDescriptorHandler
(
VP9
::
PayloadDescriptor
*
payloadDescriptor
)
...
...
worker/src/RTC/RTCP/Bye.cpp
浏览文件 @
7e1a995e
...
...
@@ -94,11 +94,11 @@ namespace RTC
MS_DUMP
(
"<ByePacket>"
);
for
(
auto
ssrc
:
this
->
ssrcs
)
{
MS_DUMP
(
" ssrc
: %"
PRIu32
,
ssrc
);
MS_DUMP
(
" ssrc: %"
PRIu32
,
ssrc
);
}
if
(
!
this
->
reason
.
empty
())
{
MS_DUMP
(
" reason
: %s"
,
this
->
reason
.
c_str
());
MS_DUMP
(
" reason: %s"
,
this
->
reason
.
c_str
());
}
MS_DUMP
(
"</ByePacket>"
);
}
...
...
worker/src/RTC/RTCP/Feedback.cpp
浏览文件 @
7e1a995e
...
...
@@ -87,9 +87,9 @@ namespace RTC
{
MS_TRACE
();
MS_DUMP
(
" sender ssrc
: %"
PRIu32
,
GetSenderSsrc
());
MS_DUMP
(
" media ssrc
: %"
PRIu32
,
GetMediaSsrc
());
MS_DUMP
(
" size
: %zu"
,
this
->
GetSize
());
MS_DUMP
(
" sender ssrc: %"
PRIu32
,
GetSenderSsrc
());
MS_DUMP
(
" media ssrc: %"
PRIu32
,
GetMediaSsrc
());
MS_DUMP
(
" size: %zu"
,
this
->
GetSize
());
}
/* Specialization for Ps class. */
...
...
worker/src/RTC/RTCP/FeedbackPsFir.cpp
浏览文件 @
7e1a995e
...
...
@@ -41,8 +41,8 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<FeedbackPsFirItem>"
);
MS_DUMP
(
" ssrc
: %"
PRIu32
,
this
->
GetSsrc
());
MS_DUMP
(
" sequence number
: %"
PRIu8
,
this
->
GetSequenceNumber
());
MS_DUMP
(
" ssrc: %"
PRIu32
,
this
->
GetSsrc
());
MS_DUMP
(
" sequence number: %"
PRIu8
,
this
->
GetSequenceNumber
());
MS_DUMP
(
"</FeedbackPsFirItem>"
);
}
}
// namespace RTCP
...
...
worker/src/RTC/RTCP/FeedbackPsLei.cpp
浏览文件 @
7e1a995e
...
...
@@ -34,7 +34,7 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<FeedbackPsLeiItem>"
);
MS_DUMP
(
" ssrc
: %"
PRIu32
,
this
->
GetSsrc
());
MS_DUMP
(
" ssrc: %"
PRIu32
,
this
->
GetSsrc
());
MS_DUMP
(
"</FeedbackPsLeiItem>"
);
}
}
// namespace RTCP
...
...
worker/src/RTC/RTCP/FeedbackPsRemb.cpp
浏览文件 @
7e1a995e
...
...
@@ -147,10 +147,10 @@ namespace RTC
MS_DUMP
(
"<FeedbackPsRembPacket>"
);
FeedbackPsPacket
::
Dump
();
MS_DUMP
(
" bitrate (bps)
: %"
PRIu64
,
this
->
bitrate
);
MS_DUMP
(
" bitrate (bps): %"
PRIu64
,
this
->
bitrate
);
for
(
auto
ssrc
:
this
->
ssrcs
)
{
MS_DUMP
(
" ssrc
: %"
PRIu32
,
ssrc
);
MS_DUMP
(
" ssrc: %"
PRIu32
,
ssrc
);
}
MS_DUMP
(
"</FeedbackPsRembPacket>"
);
}
...
...
worker/src/RTC/RTCP/FeedbackPsRpsi.cpp
浏览文件 @
7e1a995e
...
...
@@ -77,9 +77,9 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<FeedbackPsRpsiItem>"
);
MS_DUMP
(
" padding bits
:
%"
PRIu8
,
this
->
header
->
paddingBits
);
MS_DUMP
(
" payload type
: %"
PRIu8
,
this
->
GetPayloadType
());
MS_DUMP
(
" length
: %zu"
,
this
->
GetLength
());
MS_DUMP
(
" padding bits %"
PRIu8
,
this
->
header
->
paddingBits
);
MS_DUMP
(
" payload type: %"
PRIu8
,
this
->
GetPayloadType
());
MS_DUMP
(
" length: %zu"
,
this
->
GetLength
());
MS_DUMP
(
"</FeedbackPsRpsiItem>"
);
}
}
// namespace RTCP
...
...
worker/src/RTC/RTCP/FeedbackPsSli.cpp
浏览文件 @
7e1a995e
...
...
@@ -39,9 +39,9 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<FeedbackPsSliItem>"
);
MS_DUMP
(
" first
: %"
PRIu16
,
this
->
first
);
MS_DUMP
(
" number
: %"
PRIu16
,
this
->
number
);
MS_DUMP
(
" picture id
: %"
PRIu8
,
this
->
pictureId
);
MS_DUMP
(
" first: %"
PRIu16
,
this
->
first
);
MS_DUMP
(
" number: %"
PRIu16
,
this
->
number
);
MS_DUMP
(
" picture id: %"
PRIu8
,
this
->
pictureId
);
MS_DUMP
(
"</FeedbackPsSliItem>"
);
}
}
// namespace RTCP
...
...
worker/src/RTC/RTCP/FeedbackPsTst.cpp
浏览文件 @
7e1a995e
...
...
@@ -41,9 +41,9 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<FeedbackPsTstItem>"
);
MS_DUMP
(
" ssrc
: %"
PRIu32
,
this
->
GetSsrc
());
MS_DUMP
(
" sequence number
: %"
PRIu32
,
this
->
GetSequenceNumber
());
MS_DUMP
(
" index
: %"
PRIu32
,
this
->
GetIndex
());
MS_DUMP
(
" ssrc: %"
PRIu32
,
this
->
GetSsrc
());
MS_DUMP
(
" sequence number: %"
PRIu32
,
this
->
GetSequenceNumber
());
MS_DUMP
(
" index: %"
PRIu32
,
this
->
GetIndex
());
MS_DUMP
(
"</FeedbackPsTstItem>"
);
}
...
...
worker/src/RTC/RTCP/FeedbackPsVbcm.cpp
浏览文件 @
7e1a995e
...
...
@@ -51,10 +51,10 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<FeedbackPsVbcmItem>"
);
MS_DUMP
(
" ssrc
: %"
PRIu32
,
this
->
GetSsrc
());
MS_DUMP
(
" sequence number
: %"
PRIu8
,
this
->
GetSequenceNumber
());
MS_DUMP
(
" payload type
: %"
PRIu8
,
this
->
GetPayloadType
());
MS_DUMP
(
" length
: %"
PRIu16
,
this
->
GetLength
());
MS_DUMP
(
" ssrc: %"
PRIu32
,
this
->
GetSsrc
());
MS_DUMP
(
" sequence number: %"
PRIu8
,
this
->
GetSequenceNumber
());
MS_DUMP
(
" payload type: %"
PRIu8
,
this
->
GetPayloadType
());
MS_DUMP
(
" length: %"
PRIu16
,
this
->
GetLength
());
MS_DUMP
(
"</FeedbackPsVbcmItem>"
);
}
}
// namespace RTCP
...
...
worker/src/RTC/RTCP/FeedbackRtpEcn.cpp
浏览文件 @
7e1a995e
...
...
@@ -24,13 +24,13 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<FeedbackRtpEcnItem>"
);
MS_DUMP
(
" sequence number
: %"
PRIu32
,
this
->
GetSequenceNumber
());
MS_DUMP
(
" ect0 counter
: %"
PRIu32
,
this
->
GetEct0Counter
());
MS_DUMP
(
" ect1 counter
: %"
PRIu32
,
this
->
GetEct1Counter
());
MS_DUMP
(
" ecn ce counter
: %"
PRIu16
,
this
->
GetEcnCeCounter
());
MS_DUMP
(
" not ect counter
: %"
PRIu16
,
this
->
GetNotEctCounter
());
MS_DUMP
(
" lost packets
: %"
PRIu16
,
this
->
GetLostPackets
());
MS_DUMP
(
" duplicated packets
: %"
PRIu16
,
this
->
GetDuplicatedPackets
());
MS_DUMP
(
" sequence number: %"
PRIu32
,
this
->
GetSequenceNumber
());
MS_DUMP
(
" ect0 counter: %"
PRIu32
,
this
->
GetEct0Counter
());
MS_DUMP
(
" ect1 counter: %"
PRIu32
,
this
->
GetEct1Counter
());
MS_DUMP
(
" ecn ce counter: %"
PRIu16
,
this
->
GetEcnCeCounter
());
MS_DUMP
(
" not ect counter: %"
PRIu16
,
this
->
GetNotEctCounter
());
MS_DUMP
(
" lost packets: %"
PRIu16
,
this
->
GetLostPackets
());
MS_DUMP
(
" duplicated packets: %"
PRIu16
,
this
->
GetDuplicatedPackets
());
MS_DUMP
(
"</FeedbackRtpEcnItem>"
);
}
}
// namespace RTCP
...
...
worker/src/RTC/RTCP/FeedbackRtpNack.cpp
浏览文件 @
7e1a995e
...
...
@@ -37,8 +37,8 @@ namespace RTC
std
::
bitset
<
16
>
nackBitset
(
this
->
GetLostPacketBitmask
());
MS_DUMP
(
"<FeedbackRtpNackItem>"
);
MS_DUMP
(
" pid
: %"
PRIu16
,
this
->
GetPacketId
());
MS_DUMP
(
" bpl
: %s"
,
nackBitset
.
to_string
().
c_str
());
MS_DUMP
(
" pid: %"
PRIu16
,
this
->
GetPacketId
());
MS_DUMP
(
" bpl: %s"
,
nackBitset
.
to_string
().
c_str
());
MS_DUMP
(
"</FeedbackRtpNackItem>"
);
}
}
// namespace RTCP
...
...
worker/src/RTC/RTCP/FeedbackRtpTmmb.cpp
浏览文件 @
7e1a995e
...
...
@@ -68,9 +68,9 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<FeedbackRtpTmmbItem>"
);
MS_DUMP
(
" ssrc
: %"
PRIu32
,
this
->
GetSsrc
());
MS_DUMP
(
" bitrate
: %"
PRIu64
,
this
->
GetBitrate
());
MS_DUMP
(
" overhead
: %"
PRIu16
,
this
->
GetOverhead
());
MS_DUMP
(
" ssrc: %"
PRIu32
,
this
->
GetSsrc
());
MS_DUMP
(
" bitrate: %"
PRIu64
,
this
->
GetBitrate
());
MS_DUMP
(
" overhead: %"
PRIu16
,
this
->
GetOverhead
());
MS_DUMP
(
"</FeedbackRtpTmmbItem>"
);
}
...
...
worker/src/RTC/RTCP/FeedbackRtpTransport.cpp
浏览文件 @
7e1a995e
...
...
@@ -179,11 +179,11 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<FeedbackRtpTransportPacket>"
);
MS_DUMP
(
" base sequence
: %"
PRIu16
,
this
->
baseSequenceNumber
);
MS_DUMP
(
" packet status count
: %"
PRIu16
,
this
->
packetStatusCount
);
MS_DUMP
(
" reference time
: %"
PRIi32
,
this
->
referenceTime
);
MS_DUMP
(
" feedback packet count
: %"
PRIu8
,
this
->
feedbackPacketCount
);
MS_DUMP
(
" size
: %zu"
,
GetSize
());
MS_DUMP
(
" base sequence: %"
PRIu16
,
this
->
baseSequenceNumber
);
MS_DUMP
(
" packet status count: %"
PRIu16
,
this
->
packetStatusCount
);
MS_DUMP
(
" reference time: %"
PRIi32
,
this
->
referenceTime
);
MS_DUMP
(
" feedback packet count: %"
PRIu8
,
this
->
feedbackPacketCount
);
MS_DUMP
(
" size: %zu"
,
GetSize
());
for
(
auto
*
chunk
:
this
->
chunks
)
{
...
...
@@ -728,8 +728,8 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
" <RunLengthChunk>"
);
MS_DUMP
(
" status
: %s"
,
FeedbackRtpTransportPacket
::
status2String
[
this
->
status
].
c_str
());
MS_DUMP
(
" count
: %"
PRIu16
,
this
->
count
);
MS_DUMP
(
" status: %s"
,
FeedbackRtpTransportPacket
::
status2String
[
this
->
status
].
c_str
());
MS_DUMP
(
" count: %"
PRIu16
,
this
->
count
);
MS_DUMP
(
" </RunLengthChunk>"
);
}
...
...
worker/src/RTC/RTCP/ReceiverReport.cpp
浏览文件 @
7e1a995e
...
...
@@ -37,13 +37,13 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<ReceiverReport>"
);
MS_DUMP
(
" ssrc
: %"
PRIu32
,
GetSsrc
());
MS_DUMP
(
" fraction lost
: %"
PRIu8
,
GetFractionLost
());
MS_DUMP
(
" total lost
: %"
PRIu32
,
GetTotalLost
());
MS_DUMP
(
" last seq
: %"
PRIu32
,
GetLastSeq
());
MS_DUMP
(
" jitter
: %"
PRIu32
,
GetJitter
());
MS_DUMP
(
" lsr
: %"
PRIu32
,
GetLastSenderReport
());
MS_DUMP
(
" dlsr
: %"
PRIu32
,
GetDelaySinceLastSenderReport
());
MS_DUMP
(
" ssrc: %"
PRIu32
,
GetSsrc
());
MS_DUMP
(
" fraction lost: %"
PRIu8
,
GetFractionLost
());
MS_DUMP
(
" total lost: %"
PRIu32
,
GetTotalLost
());
MS_DUMP
(
" last seq: %"
PRIu32
,
GetLastSeq
());
MS_DUMP
(
" jitter: %"
PRIu32
,
GetJitter
());
MS_DUMP
(
" lsr: %"
PRIu32
,
GetLastSenderReport
());
MS_DUMP
(
" dlsr: %"
PRIu32
,
GetDelaySinceLastSenderReport
());
MS_DUMP
(
"</ReceiverReport>"
);
}
...
...
worker/src/RTC/RTCP/Sdes.cpp
浏览文件 @
7e1a995e
...
...
@@ -92,9 +92,9 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<SdesItem>"
);
MS_DUMP
(
" type
: %s"
,
SdesItem
::
Type2String
(
this
->
GetType
()).
c_str
());
MS_DUMP
(
" length
: %"
PRIu8
,
this
->
header
->
length
);
MS_DUMP
(
" value
: %.*s"
,
this
->
header
->
length
,
this
->
header
->
value
);
MS_DUMP
(
" type: %s"
,
SdesItem
::
Type2String
(
this
->
GetType
()).
c_str
());
MS_DUMP
(
" length: %"
PRIu8
,
this
->
header
->
length
);
MS_DUMP
(
" value: %.*s"
,
this
->
header
->
length
,
this
->
header
->
value
);
MS_DUMP
(
"</SdesItem>"
);
}
...
...
@@ -240,7 +240,7 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<SdesChunk>"
);
MS_DUMP
(
" ssrc
: %"
PRIu32
,
this
->
ssrc
);
MS_DUMP
(
" ssrc: %"
PRIu32
,
this
->
ssrc
);
for
(
auto
*
item
:
this
->
items
)
{
item
->
Dump
();
...
...
worker/src/RTC/RTCP/SenderReport.cpp
浏览文件 @
7e1a995e
...
...
@@ -36,12 +36,12 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<SenderReport>"
);
MS_DUMP
(
" ssrc
: %"
PRIu32
,
GetSsrc
());
MS_DUMP
(
" ntp sec
: %"
PRIu32
,
GetNtpSec
());
MS_DUMP
(
" ntp frac
: %"
PRIu32
,
GetNtpFrac
());
MS_DUMP
(
" rtp ts
: %"
PRIu32
,
GetRtpTs
());
MS_DUMP
(
" packet count
: %"
PRIu32
,
GetPacketCount
());
MS_DUMP
(
" octet count
: %"
PRIu32
,
GetOctetCount
());
MS_DUMP
(
" ssrc: %"
PRIu32
,
GetSsrc
());
MS_DUMP
(
" ntp sec: %"
PRIu32
,
GetNtpSec
());
MS_DUMP
(
" ntp frac: %"
PRIu32
,
GetNtpFrac
());
MS_DUMP
(
" rtp ts: %"
PRIu32
,
GetRtpTs
());
MS_DUMP
(
" packet count: %"
PRIu32
,
GetPacketCount
());
MS_DUMP
(
" octet count: %"
PRIu32
,
GetOctetCount
());
MS_DUMP
(
"</SenderReport>"
);
}
...
...
worker/src/RTC/RTCP/XrDelaySinceLastRr.cpp
浏览文件 @
7e1a995e
...
...
@@ -38,9 +38,9 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
" <SsrcInfo>"
);
MS_DUMP
(
" ssrc
: %"
PRIu32
,
GetSsrc
());
MS_DUMP
(
" lrr
: %"
PRIu32
,
GetLastReceiverReport
());
MS_DUMP
(
" dlrr
: %"
PRIu32
,
GetDelaySinceLastReceiverReport
());
MS_DUMP
(
" ssrc: %"
PRIu32
,
GetSsrc
());
MS_DUMP
(
" lrr: %"
PRIu32
,
GetLastReceiverReport
());
MS_DUMP
(
" dlrr: %"
PRIu32
,
GetDelaySinceLastReceiverReport
());
MS_DUMP
(
" <SsrcInfo>"
);
}
...
...
@@ -117,10 +117,10 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<DelaySinceLastRr>"
);
MS_DUMP
(
" block type
: %"
PRIu8
,
(
uint8_t
)
this
->
type
);
MS_DUMP
(
" reserved
: 0"
);
MS_DUMP
(
" block type: %"
PRIu8
,
(
uint8_t
)
this
->
type
);
MS_DUMP
(
" reserved: 0"
);
MS_DUMP
(
" length
: %"
PRIu16
,
" length: %"
PRIu16
,
static_cast
<
uint16_t
>
((
SsrcInfo
::
BodySize
*
this
->
ssrcInfos
.
size
()
/
4
)));
for
(
auto
*
ssrcInfo
:
this
->
ssrcInfos
)
{
...
...
worker/src/RTC/RTCP/XrReceiverReferenceTime.cpp
浏览文件 @
7e1a995e
...
...
@@ -35,11 +35,11 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<ReceiverReferenceTime>"
);
MS_DUMP
(
" block type
: %"
PRIu8
,
static_cast
<
uint8_t
>
(
this
->
type
));
MS_DUMP
(
" reserved
: 0"
);
MS_DUMP
(
" length
: 2"
);
MS_DUMP
(
" ntp sec
: %"
PRIu32
,
GetNtpSec
());
MS_DUMP
(
" ntp frac
: %"
PRIu32
,
GetNtpFrac
());
MS_DUMP
(
" block type: %"
PRIu8
,
static_cast
<
uint8_t
>
(
this
->
type
));
MS_DUMP
(
" reserved: 0"
);
MS_DUMP
(
" length: 2"
);
MS_DUMP
(
" ntp sec: %"
PRIu32
,
GetNtpSec
());
MS_DUMP
(
" ntp frac: %"
PRIu32
,
GetNtpFrac
());
MS_DUMP
(
"</ReceiverReferenceTime>"
);
}
...
...
worker/src/RTC/RtpPacket.cpp
浏览文件 @
7e1a995e
...
...
@@ -166,21 +166,21 @@ namespace RTC
MS_TRACE
();
MS_DUMP
(
"<RtpPacket>"
);
MS_DUMP
(
" padding
: %s"
,
this
->
header
->
padding
?
"true"
:
"false"
);
MS_DUMP
(
" padding: %s"
,
this
->
header
->
padding
?
"true"
:
"false"
);
if
(
HasHeaderExtension
())
{
MS_DUMP
(
" header extension
: id:%"
PRIu16
", length:%zu"
,
" header extension: id:%"
PRIu16
", length:%zu"
,
GetHeaderExtensionId
(),
GetHeaderExtensionLength
());
}
if
(
HasOneByteExtensions
())
{
MS_DUMP
(
" RFC5285 ext style
: One-Byte Header"
);
MS_DUMP
(
" RFC5285 ext style: One-Byte Header"
);
}
if
(
HasTwoBytesExtensions
())
{
MS_DUMP
(
" RFC5285 ext style
: Two-Bytes Header"
);
MS_DUMP
(
" RFC5285 ext style: Two-Bytes Header"
);
}
if
(
HasOneByteExtensions
()
||
HasTwoBytesExtensions
())
{
...
...
@@ -213,7 +213,7 @@ namespace RTC
extIds
.
begin
(),
extIds
.
end
()
-
1
,
std
::
ostream_iterator
<
std
::
string
>
(
extIdsStream
,
","
));
extIdsStream
<<
extIds
.
back
();
MS_DUMP
(
" RFC5285 ext ids
: %s"
,
extIdsStream
.
str
().
c_str
());
MS_DUMP
(
" RFC5285 ext ids: %s"
,
extIdsStream
.
str
().
c_str
());
}
}
if
(
this
->
midExtensionId
!=
0u
)
...
...
@@ -222,8 +222,7 @@ namespace RTC
if
(
ReadMid
(
mid
))
{
MS_DUMP
(
" mid : extId:%"
PRIu8
", value:'%s'"
,
this
->
midExtensionId
,
mid
.
c_str
());
MS_DUMP
(
" mid: extId:%"
PRIu8
", value:'%s'"
,
this
->
midExtensionId
,
mid
.
c_str
());
}
}
if
(
this
->
ridExtensionId
!=
0u
)
...
...
@@ -232,8 +231,7 @@ namespace RTC
if
(
ReadRid
(
rid
))
{
MS_DUMP
(
" rid : extId:%"
PRIu8
", value:'%s'"
,
this
->
ridExtensionId
,
rid
.
c_str
());
MS_DUMP
(
" rid: extId:%"
PRIu8
", value:'%s'"
,
this
->
ridExtensionId
,
rid
.
c_str
());
}
}
if
(
this
->
rridExtensionId
!=
0u
)
...
...
@@ -242,13 +240,12 @@ namespace RTC
if
(
ReadRid
(
rid
))
{
MS_DUMP
(
" rrid : extId:%"
PRIu8
", value:'%s'"
,
this
->
rridExtensionId
,
rid
.
c_str
());
MS_DUMP
(
" rrid: extId:%"
PRIu8
", value:'%s'"
,
this
->
rridExtensionId
,
rid
.
c_str
());
}
}
if
(
this
->
absSendTimeExtensionId
!=
0u
)
{
MS_DUMP
(
" absSendTime
: extId:%"
PRIu8
,
this
->
absSendTimeExtensionId
);
MS_DUMP
(
" absSendTime: extId:%"
PRIu8
,
this
->
absSendTimeExtensionId
);
}
if
(
this
->
transportWideCc01ExtensionId
!=
0u
)
{
...
...
@@ -257,7 +254,7 @@ namespace RTC
if
(
ReadTransportWideCc01
(
wideSeqNumber
))
{
MS_DUMP
(
" transportWideCc01
: extId:%"
PRIu8
", value:%"
PRIu16
,
" transportWideCc01: extId:%"
PRIu8
", value:%"
PRIu16
,
this
->
transportWideCc01ExtensionId
,
wideSeqNumber
);
}
...
...
@@ -265,11 +262,11 @@ namespace RTC
// Remove once it becomes RFC.
if
(
this
->
frameMarking07ExtensionId
!=
0u
)
{
MS_DUMP
(
" frameMarking07
: extId:%"
PRIu8
,
this
->
frameMarking07ExtensionId
);
MS_DUMP
(
" frameMarking07: extId:%"
PRIu8
,
this
->
frameMarking07ExtensionId
);
}
if
(
this
->
frameMarkingExtensionId
!=
0u
)
{
MS_DUMP
(
" frameMarking
: extId:%"
PRIu8
,
this
->
frameMarkingExtensionId
);
MS_DUMP
(
" frameMarking: extId:%"
PRIu8
,
this
->
frameMarkingExtensionId
);
}
if
(
this
->
ssrcAudioLevelExtensionId
!=
0u
)
{
...
...
@@ -279,7 +276,7 @@ namespace RTC
if
(
ReadSsrcAudioLevel
(
volume
,
voice
))
{
MS_DUMP
(
" ssrcAudioLevel
: extId:%"
PRIu8
", volume:%"
PRIu8
", voice:%s"
,
" ssrcAudioLevel: extId:%"
PRIu8
", volume:%"
PRIu8
", voice:%s"
,
this
->
ssrcAudioLevelExtensionId
,
volume
,
voice
?
"true"
:
"false"
);
...
...
@@ -294,27 +291,27 @@ namespace RTC
if
(
ReadVideoOrientation
(
camera
,
flip
,
rotation
))
{
MS_DUMP
(
" videoOrientation
: extId:%"
PRIu8
", camera:%s, flip:%s, rotation:%"
PRIu16
,
" videoOrientation: extId:%"
PRIu8
", camera:%s, flip:%s, rotation:%"
PRIu16
,
this
->
videoOrientationExtensionId
,
camera
?
"true"
:
"false"
,
flip
?
"true"
:
"false"
,
rotation
);
}
}
MS_DUMP
(
" csrc count
: %"
PRIu8
,
this
->
header
->
csrcCount
);
MS_DUMP
(
" marker
: %s"
,
HasMarker
()
?
"true"
:
"false"
);
MS_DUMP
(
" payload type
: %"
PRIu8
,
GetPayloadType
());
MS_DUMP
(
" sequence number
: %"
PRIu16
,
GetSequenceNumber
());
MS_DUMP
(
" timestamp
: %"
PRIu32
,
GetTimestamp
());
MS_DUMP
(
" ssrc
: %"
PRIu32
,
GetSsrc
());
MS_DUMP
(
" payload size
: %zu bytes"
,
GetPayloadLength
());
MS_DUMP
(
" csrc count: %"
PRIu8
,
this
->
header
->
csrcCount
);
MS_DUMP
(
" marker: %s"
,
HasMarker
()
?
"true"
:
"false"
);
MS_DUMP
(
" payload type: %"
PRIu8
,
GetPayloadType
());
MS_DUMP
(
" sequence number: %"
PRIu16
,
GetSequenceNumber
());
MS_DUMP
(
" timestamp: %"
PRIu32
,
GetTimestamp
());
MS_DUMP
(
" ssrc: %"
PRIu32
,
GetSsrc
());
MS_DUMP
(
" payload size: %zu bytes"
,
GetPayloadLength
());
if
(
this
->
header
->
padding
!=
0u
)
{
MS_DUMP
(
" padding size
: %"
PRIu8
" bytes"
,
this
->
payloadPadding
);
MS_DUMP
(
" padding size: %"
PRIu8
" bytes"
,
this
->
payloadPadding
);
}
MS_DUMP
(
" packet size
: %zu bytes"
,
GetSize
());
MS_DUMP
(
" spatial layer
: %"
PRIu8
,
GetSpatialLayer
());
MS_DUMP
(
" temporal layer
: %"
PRIu8
,
GetTemporalLayer
());
MS_DUMP
(
" packet size: %zu bytes"
,
GetSize
());
MS_DUMP
(
" spatial layer: %"
PRIu8
,
GetSpatialLayer
());
MS_DUMP
(
" temporal layer: %"
PRIu8
,
GetTemporalLayer
());
MS_DUMP
(
"</RtpPacket>"
);
}
...
...
worker/src/RTC/StunPacket.cpp
浏览文件 @
7e1a995e
...
...
@@ -421,7 +421,7 @@ namespace RTC
}
if
(
this
->
hasUseCandidate
)
{
MS_DUMP
(
" useCandidate"
);
MS_DUMP
(
" useCandidate
: yes
"
);
}
if
(
!
this
->
software
.
empty
())
{
...
...
@@ -450,7 +450,7 @@ namespace RTC
}
if
(
this
->
hasFingerprint
)
{
MS_DUMP
(
"
has fingerprint
"
);
MS_DUMP
(
"
fingerprint: yes
"
);
}
MS_DUMP
(
"</StunPacket>"
);
...
...
worker/src/RTC/TransportTuple.cpp
浏览文件 @
7e1a995e
...
...
@@ -74,22 +74,22 @@ namespace RTC
Utils
::
IP
::
GetAddressInfo
(
GetLocalAddress
(),
family
,
ip
,
port
);
MS_DUMP
(
" localIp
: %s"
,
ip
.
c_str
());
MS_DUMP
(
" localPort
: %"
PRIu16
,
port
);
MS_DUMP
(
" localIp: %s"
,
ip
.
c_str
());
MS_DUMP
(
" localPort: %"
PRIu16
,
port
);
Utils
::
IP
::
GetAddressInfo
(
GetRemoteAddress
(),
family
,
ip
,
port
);
MS_DUMP
(
" remoteIp
: %s"
,
ip
.
c_str
());
MS_DUMP
(
" remotePort
: %"
PRIu16
,
port
);
MS_DUMP
(
" remoteIp: %s"
,
ip
.
c_str
());
MS_DUMP
(
" remotePort: %"
PRIu16
,
port
);
switch
(
GetProtocol
())
{
case
Protocol
:
:
UDP
:
MS_DUMP
(
" protocol
: udp"
);
MS_DUMP
(
" protocol: udp"
);
break
;
case
Protocol
:
:
TCP
:
MS_DUMP
(
" protocol
: tcp"
);
MS_DUMP
(
" protocol: tcp"
);
break
;
}
...
...
worker/src/handles/TcpConnectionHandle.cpp
浏览文件 @
7e1a995e
...
...
@@ -145,11 +145,11 @@ void TcpConnectionHandle::Close()
void
TcpConnectionHandle
::
Dump
()
const
{
MS_DUMP
(
"<TcpConnectionHandle>"
);
MS_DUMP
(
" localIp
: %s"
,
this
->
localIp
.
c_str
());
MS_DUMP
(
" localPort
: %"
PRIu16
,
static_cast
<
uint16_t
>
(
this
->
localPort
));
MS_DUMP
(
" remoteIp
: %s"
,
this
->
peerIp
.
c_str
());
MS_DUMP
(
" remotePort
: %"
PRIu16
,
static_cast
<
uint16_t
>
(
this
->
peerPort
));
MS_DUMP
(
" closed
: %s"
,
!
this
->
closed
?
"open"
:
"closed
"
);
MS_DUMP
(
" localIp: %s"
,
this
->
localIp
.
c_str
());
MS_DUMP
(
" localPort: %"
PRIu16
,
static_cast
<
uint16_t
>
(
this
->
localPort
));
MS_DUMP
(
" remoteIp: %s"
,
this
->
peerIp
.
c_str
());
MS_DUMP
(
" remotePort: %"
PRIu16
,
static_cast
<
uint16_t
>
(
this
->
peerPort
));
MS_DUMP
(
" closed
: %s"
,
this
->
closed
?
"yes"
:
"no
"
);
MS_DUMP
(
"</TcpConnectionHandle>"
);
}
...
...
worker/src/handles/TcpServerHandle.cpp
浏览文件 @
7e1a995e
...
...
@@ -96,12 +96,10 @@ void TcpServerHandle::Close()
void
TcpServerHandle
::
Dump
()
const
{
MS_DUMP
(
"<TcpServerHandle>"
);
MS_DUMP
(
" [TCP, local:%s :%"
PRIu16
", status:%s, connections:%zu]"
,
this
->
localIp
.
c_str
(),
static_cast
<
uint16_t
>
(
this
->
localPort
),
(
!
this
->
closed
)
?
"open"
:
"closed"
,
this
->
connections
.
size
());
MS_DUMP
(
" localIp: %s"
,
this
->
localIp
.
c_str
());
MS_DUMP
(
" localPort: %"
PRIu16
,
static_cast
<
uint16_t
>
(
this
->
localPort
));
MS_DUMP
(
" num connections: %zu"
,
this
->
connections
.
size
());
MS_DUMP
(
" closed: %s"
,
this
->
closed
?
"yes"
:
"no"
);
MS_DUMP
(
"</TcpServerHandle>"
);
}
...
...
worker/src/handles/UdpSocketHandle.cpp
浏览文件 @
7e1a995e
...
...
@@ -135,9 +135,9 @@ void UdpSocketHandle::Close()
void
UdpSocketHandle
::
Dump
()
const
{
MS_DUMP
(
"<UdpSocketHandle>"
);
MS_DUMP
(
" localIp
: %s"
,
this
->
localIp
.
c_str
());
MS_DUMP
(
" localPort
: %"
PRIu16
,
static_cast
<
uint16_t
>
(
this
->
localPort
));
MS_DUMP
(
" closed
: %s"
,
!
this
->
closed
?
"open"
:
"closed
"
);
MS_DUMP
(
" localIp: %s"
,
this
->
localIp
.
c_str
());
MS_DUMP
(
" localPort: %"
PRIu16
,
static_cast
<
uint16_t
>
(
this
->
localPort
));
MS_DUMP
(
" closed
: %s"
,
this
->
closed
?
"yes"
:
"no
"
);
MS_DUMP
(
"</UdpSocketHandle>"
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论