Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
4bf4f0f4
提交
4bf4f0f4
authored
11月 22, 2015
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minimal style changes
上级
5ee6def4
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
16 行增加
和
13 行删除
+16
-13
.gitignore
.gitignore
+1
-0
DTLSRole.h
include/RTC/DTLSRole.h
+1
-1
FingerprintHash.h
include/RTC/FingerprintHash.h
+2
-2
SRTPProfile.h
include/RTC/SRTPProfile.h
+1
-1
Daemon.cpp
src/Daemon.cpp
+1
-1
Dispatcher.cpp
src/Dispatcher.cpp
+3
-3
MediaSoup.cpp
src/MediaSoup.cpp
+2
-2
OpenSSL.cpp
src/OpenSSL.cpp
+2
-2
Room.cpp
src/RTC/Room.cpp
+1
-0
Stream.cpp
src/RTC/Stream.cpp
+1
-0
Settings.cpp
src/Settings.cpp
+1
-1
没有找到文件。
.gitignore
浏览文件 @
4bf4f0f4
...
@@ -4,3 +4,4 @@
...
@@ -4,3 +4,4 @@
/etc/*.pem
/etc/*.pem
/mediasoup-tester.sh
/mediasoup-tester.sh
/cldoc/
/cldoc/
/TODO
include/RTC/DTLSRole.h
浏览文件 @
4bf4f0f4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
namespace
RTC
{
namespace
RTC
{
enum
class
DTLSRole
enum
class
DTLSRole
{
{
NONE
=
0
,
NONE
=
0
,
SERVER
=
1
,
SERVER
=
1
,
CLIENT
CLIENT
};
};
...
...
include/RTC/FingerprintHash.h
浏览文件 @
4bf4f0f4
...
@@ -5,8 +5,8 @@ namespace RTC
...
@@ -5,8 +5,8 @@ namespace RTC
{
{
enum
class
FingerprintHash
enum
class
FingerprintHash
{
{
NONE
=
0
,
NONE
=
0
,
SHA1
=
1
,
SHA1
=
1
,
SHA224
,
SHA224
,
SHA256
,
SHA256
,
SHA384
,
SHA384
,
...
...
include/RTC/SRTPProfile.h
浏览文件 @
4bf4f0f4
...
@@ -5,7 +5,7 @@ namespace RTC
...
@@ -5,7 +5,7 @@ namespace RTC
{
{
enum
class
SRTPProfile
enum
class
SRTPProfile
{
{
NONE
=
0
,
NONE
=
0
,
AES_CM_128_HMAC_SHA1_80
=
1
,
AES_CM_128_HMAC_SHA1_80
=
1
,
AES_CM_128_HMAC_SHA1_32
AES_CM_128_HMAC_SHA1_32
};
};
...
...
src/Daemon.cpp
浏览文件 @
4bf4f0f4
...
@@ -138,7 +138,7 @@ void Daemon::Daemonize()
...
@@ -138,7 +138,7 @@ void Daemon::Daemonize()
// Close all the possible fds inherited from the ancestor process (all but
// Close all the possible fds inherited from the ancestor process (all but
// the write side of the pipe as the daemonized process must use it).
// the write side of the pipe as the daemonized process must use it).
for
(
int
fd
=
3
;
fd
<
32
;
fd
++
)
for
(
int
fd
=
3
;
fd
<
32
;
fd
++
)
{
{
if
(
fd
!=
Daemon
::
statusPipe
[
1
])
if
(
fd
!=
Daemon
::
statusPipe
[
1
])
close
(
fd
);
close
(
fd
);
...
...
src/Dispatcher.cpp
浏览文件 @
4bf4f0f4
...
@@ -54,7 +54,7 @@ Dispatcher::Dispatcher()
...
@@ -54,7 +54,7 @@ Dispatcher::Dispatcher()
// since the first entry will be in position 1.
// since the first entry will be in position 1.
this
->
controlProtocolUnixStreamSockets
.
push_back
(
nullptr
);
this
->
controlProtocolUnixStreamSockets
.
push_back
(
nullptr
);
for
(
int
workerId
=
1
;
workerId
<=
num_workers
;
workerId
++
)
for
(
int
workerId
=
1
;
workerId
<=
num_workers
;
workerId
++
)
{
{
int
fd
=
Worker
::
GetControlProtocolRemoteSocket
(
workerId
);
int
fd
=
Worker
::
GetControlProtocolRemoteSocket
(
workerId
);
ControlProtocol
::
UnixStreamSocket
*
controlProtocolUnixStreamSocket
;
ControlProtocol
::
UnixStreamSocket
*
controlProtocolUnixStreamSocket
;
...
@@ -128,7 +128,7 @@ void Dispatcher::Close()
...
@@ -128,7 +128,7 @@ void Dispatcher::Close()
// Close the ControlProtocol UnixStream sockets.
// Close the ControlProtocol UnixStream sockets.
int
num_workers
=
Worker
::
CountWorkers
();
int
num_workers
=
Worker
::
CountWorkers
();
for
(
int
workerId
=
1
;
workerId
<=
num_workers
;
workerId
++
)
for
(
int
workerId
=
1
;
workerId
<=
num_workers
;
workerId
++
)
this
->
controlProtocolUnixStreamSockets
[
workerId
]
->
Close
();
this
->
controlProtocolUnixStreamSockets
[
workerId
]
->
Close
();
}
}
...
@@ -216,7 +216,7 @@ void Dispatcher::onControlProtocolMessage(ControlProtocol::TCPConnection* connec
...
@@ -216,7 +216,7 @@ void Dispatcher::onControlProtocolMessage(ControlProtocol::TCPConnection* connec
if
(
relayToAllWorkers
)
if
(
relayToAllWorkers
)
{
{
int
num_workers
=
Worker
::
CountWorkers
();
int
num_workers
=
Worker
::
CountWorkers
();
for
(
int
workerId
=
1
;
workerId
<=
num_workers
;
workerId
++
)
for
(
int
workerId
=
1
;
workerId
<=
num_workers
;
workerId
++
)
{
{
ControlProtocol
::
UnixStreamSocket
*
controlProtocolUnixStreamSocket
=
controlProtocolUnixStreamSockets
[
workerId
];
ControlProtocol
::
UnixStreamSocket
*
controlProtocolUnixStreamSocket
=
controlProtocolUnixStreamSockets
[
workerId
];
...
...
src/MediaSoup.cpp
浏览文件 @
4bf4f0f4
...
@@ -74,7 +74,7 @@ void MediaSoup::Run()
...
@@ -74,7 +74,7 @@ void MediaSoup::Run()
// A vector for holding the workerId value for each thread.
// A vector for holding the workerId value for each thread.
std
::
vector
<
int
>
worker_ids
;
std
::
vector
<
int
>
worker_ids
;
for
(
int
workerId
=
1
;
workerId
<=
Settings
::
configuration
.
numWorkers
;
workerId
++
)
for
(
int
workerId
=
1
;
workerId
<=
Settings
::
configuration
.
numWorkers
;
workerId
++
)
{
{
worker_ids
.
push_back
(
workerId
);
worker_ids
.
push_back
(
workerId
);
Worker
::
SetWorker
(
workerId
,
nullptr
);
Worker
::
SetWorker
(
workerId
,
nullptr
);
...
@@ -105,7 +105,7 @@ void MediaSoup::Run()
...
@@ -105,7 +105,7 @@ void MediaSoup::Run()
waiting
.
tv_sec
=
0
;
waiting
.
tv_sec
=
0
;
waiting
.
tv_nsec
=
10000000
;
// 10 ms.
waiting
.
tv_nsec
=
10000000
;
// 10 ms.
for
(
int
i
=
1
;
i
<=
300
;
i
++
)
for
(
int
i
=
1
;
i
<=
300
;
i
++
)
{
{
if
(
Worker
::
AreAllWorkersRunning
())
if
(
Worker
::
AreAllWorkersRunning
())
{
{
...
...
src/OpenSSL.cpp
浏览文件 @
4bf4f0f4
...
@@ -32,7 +32,7 @@ void OpenSSL::ClassInit()
...
@@ -32,7 +32,7 @@ void OpenSSL::ClassInit()
OpenSSL
::
numMutexes
=
CRYPTO_num_locks
();
OpenSSL
::
numMutexes
=
CRYPTO_num_locks
();
for
(
int
i
=
0
;
i
<
OpenSSL
::
numMutexes
;
i
++
)
for
(
int
i
=
0
;
i
<
OpenSSL
::
numMutexes
;
i
++
)
{
{
int
err
=
pthread_mutex_init
(
&
OpenSSL
::
mutexes
[
i
],
nullptr
);
int
err
=
pthread_mutex_init
(
&
OpenSSL
::
mutexes
[
i
],
nullptr
);
if
(
err
)
if
(
err
)
...
@@ -70,7 +70,7 @@ void OpenSSL::ClassDestroy()
...
@@ -70,7 +70,7 @@ void OpenSSL::ClassDestroy()
sk_SSL_COMP_free
(
SSL_COMP_get_compression_methods
());
sk_SSL_COMP_free
(
SSL_COMP_get_compression_methods
());
// Free mutexes.
// Free mutexes.
for
(
int
i
=
0
;
i
<
OpenSSL
::
numMutexes
;
i
++
)
for
(
int
i
=
0
;
i
<
OpenSSL
::
numMutexes
;
i
++
)
{
{
int
err
=
pthread_mutex_destroy
(
&
OpenSSL
::
mutexes
[
i
]);
int
err
=
pthread_mutex_destroy
(
&
OpenSSL
::
mutexes
[
i
]);
if
(
err
)
if
(
err
)
...
...
src/RTC/Room.cpp
浏览文件 @
4bf4f0f4
...
@@ -25,6 +25,7 @@ namespace RTC
...
@@ -25,6 +25,7 @@ namespace RTC
{
{
RTC
::
Peer
*
peer
=
new
RTC
::
Peer
(
this
);
RTC
::
Peer
*
peer
=
new
RTC
::
Peer
(
this
);
// TODO: this is not being freed
int
*
data
=
new
int
(
i
);
int
*
data
=
new
int
(
i
);
peer
->
SetUserData
((
void
*
)
data
);
peer
->
SetUserData
((
void
*
)
data
);
...
...
src/RTC/Stream.cpp
浏览文件 @
4bf4f0f4
...
@@ -21,6 +21,7 @@ namespace RTC
...
@@ -21,6 +21,7 @@ namespace RTC
{
{
MS_TRACE
();
MS_TRACE
();
// TODO: sure I want this?
delete
this
;
delete
this
;
}
}
}
// namespace RTC
}
// namespace RTC
src/Settings.cpp
浏览文件 @
4bf4f0f4
...
@@ -571,7 +571,7 @@ void Settings::SetDefaultRTClistenIP(int requested_family)
...
@@ -571,7 +571,7 @@ void Settings::SetDefaultRTClistenIP(int requested_family)
if
(
err
)
if
(
err
)
MS_ABORT
(
"uv_interface_addresses() failed: %s"
,
uv_strerror
(
err
));
MS_ABORT
(
"uv_interface_addresses() failed: %s"
,
uv_strerror
(
err
));
for
(
int
i
=
0
;
i
<
num_addresses
;
i
++
)
for
(
int
i
=
0
;
i
<
num_addresses
;
i
++
)
{
{
uv_interface_address_t
address
=
addresses
[
i
];
uv_interface_address_t
address
=
addresses
[
i
];
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论