Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
d25b2771
提交
d25b2771
authored
8月 06, 2020
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
SctpAssociation: cosmetic renaming
上级
59b9636a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
6 行删除
+6
-6
SctpAssociation.hpp
worker/include/RTC/SctpAssociation.hpp
+1
-1
SctpAssociation.cpp
worker/src/RTC/SctpAssociation.cpp
+5
-5
没有找到文件。
worker/include/RTC/SctpAssociation.hpp
浏览文件 @
d25b2771
...
@@ -101,7 +101,7 @@ namespace RTC
...
@@ -101,7 +101,7 @@ namespace RTC
void
OnUsrSctpReceiveSctpData
(
void
OnUsrSctpReceiveSctpData
(
uint16_t
streamId
,
uint16_t
ssn
,
uint32_t
ppid
,
int
flags
,
const
uint8_t
*
data
,
size_t
len
);
uint16_t
streamId
,
uint16_t
ssn
,
uint32_t
ppid
,
int
flags
,
const
uint8_t
*
data
,
size_t
len
);
void
OnUsrSctpReceiveSctpNotification
(
union
sctp_notification
*
notification
,
size_t
len
);
void
OnUsrSctpReceiveSctpNotification
(
union
sctp_notification
*
notification
,
size_t
len
);
void
OnUsrSctp
BufferedAmount
(
uint32_t
len
);
void
OnUsrSctp
SentData
(
uint32_t
freeBuffer
);
public
:
public
:
uintptr_t
id
{
0u
};
uintptr_t
id
{
0u
};
...
...
worker/src/RTC/SctpAssociation.cpp
浏览文件 @
d25b2771
...
@@ -83,7 +83,7 @@ inline static int onRecvSctpData(
...
@@ -83,7 +83,7 @@ inline static int onRecvSctpData(
return
1
;
return
1
;
}
}
inline
static
int
on
BufferedAmount
(
struct
socket
*
/*sock*/
,
uint32_t
len
,
void
*
ulpInfo
)
inline
static
int
on
SendSctpData
(
struct
socket
*
/*sock*/
,
uint32_t
freeBuffer
,
void
*
ulpInfo
)
{
{
auto
*
sctpAssociation
=
DepUsrSCTP
::
RetrieveSctpAssociation
(
reinterpret_cast
<
uintptr_t
>
(
ulpInfo
));
auto
*
sctpAssociation
=
DepUsrSCTP
::
RetrieveSctpAssociation
(
reinterpret_cast
<
uintptr_t
>
(
ulpInfo
));
...
@@ -94,7 +94,7 @@ inline static int onBufferedAmount(struct socket* /*sock*/, uint32_t len, void*
...
@@ -94,7 +94,7 @@ inline static int onBufferedAmount(struct socket* /*sock*/, uint32_t len, void*
return
0
;
return
0
;
}
}
sctpAssociation
->
OnUsrSctp
BufferedAmount
(
len
);
sctpAssociation
->
OnUsrSctp
SentData
(
freeBuffer
);
return
1
;
return
1
;
}
}
...
@@ -134,7 +134,7 @@ namespace RTC
...
@@ -134,7 +134,7 @@ namespace RTC
SOCK_STREAM
,
SOCK_STREAM
,
IPPROTO_SCTP
,
IPPROTO_SCTP
,
onRecvSctpData
,
onRecvSctpData
,
on
BufferedAmount
,
on
SendSctpData
,
SendBufferThreshold
,
SendBufferThreshold
,
reinterpret_cast
<
void
*>
(
this
->
id
));
reinterpret_cast
<
void
*>
(
this
->
id
));
...
@@ -1018,9 +1018,9 @@ namespace RTC
...
@@ -1018,9 +1018,9 @@ namespace RTC
}
}
}
}
void
SctpAssociation
::
OnUsrSctp
BufferedAmount
(
uint32_t
len
)
void
SctpAssociation
::
OnUsrSctp
SentData
(
uint32_t
freeBuffer
)
{
{
this
->
sctpBufferedAmount
=
this
->
sctpSendBufferSize
-
len
;
this
->
sctpBufferedAmount
=
this
->
sctpSendBufferSize
-
freeBuffer
;
this
->
listener
->
OnSctpAssociationBufferedAmount
(
this
,
this
->
sctpSendBufferSize
);
this
->
listener
->
OnSctpAssociationBufferedAmount
(
this
,
this
->
sctpSendBufferSize
);
}
}
}
// namespace RTC
}
// namespace RTC
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论