Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-05-17 14:59:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c59576146b48ddc04533431452fcd926232ac4d1
c5957614
1 parent
2f89c8b2
rename struct to class. 0.9.100
隐藏空白字符变更
内嵌
并排对比
正在显示
7 个修改的文件
包含
33 行增加
和
17 行删除
trunk/src/app/srs_app_codec.hpp
trunk/src/app/srs_app_ingest.hpp
trunk/src/app/srs_app_utility.hpp
trunk/src/core/srs_core.hpp
trunk/src/rtmp/srs_protocol_handshake.hpp
trunk/src/rtmp/srs_protocol_rtmp.hpp
trunk/src/rtmp/srs_protocol_rtmp_stack.hpp
trunk/src/app/srs_app_codec.hpp
查看文件 @
c595761
...
...
@@ -179,8 +179,9 @@ enum SrsCodecAudioSoundType
/**
* buffer indicates the position and size.
*/
struct
SrsCodecBuffer
class
SrsCodecBuffer
{
public
:
/**
* @remark user must manage the bytes.
*/
...
...
trunk/src/app/srs_app_ingest.hpp
查看文件 @
c595761
...
...
@@ -43,8 +43,9 @@ class SrsPithyPrint;
/**
* ingester ffmpeg object.
*/
struct
SrsIngesterFFMPEG
class
SrsIngesterFFMPEG
{
public
:
std
::
string
vhost
;
std
::
string
id
;
SrsFFMPEG
*
ffmpeg
;
...
...
trunk/src/app/srs_app_utility.hpp
查看文件 @
c595761
...
...
@@ -39,8 +39,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
extern
int
srs_get_log_level
(
std
::
string
level
);
// @see: man getrusage
struct
SrsRusage
class
SrsRusage
{
public
:
// whether the data is ok.
bool
ok
;
// the time in ms when sample.
...
...
@@ -57,8 +58,9 @@ extern SrsRusage* srs_get_system_rusage();
extern
void
srs_update_system_rusage
();
// @see: man 5 proc, /proc/[pid]/stat
struct
SrsProcSelfStat
class
SrsProcSelfStat
{
public
:
// whether the data is ok.
bool
ok
;
// the time in ms when sample.
...
...
@@ -208,8 +210,9 @@ struct SrsProcSelfStat
};
// @see: man 5 proc, /proc/stat
struct
SrsProcSystemStat
class
SrsProcSystemStat
{
public
:
// whether the data is ok.
bool
ok
;
// the time in ms when sample.
...
...
@@ -262,8 +265,9 @@ extern SrsProcSystemStat* srs_get_system_proc_stat();
extern
void
srs_update_proc_stat
();
// @see: cat /proc/meminfo
struct
SrsMemInfo
class
SrsMemInfo
{
public
:
// whether the data is ok.
bool
ok
;
// the time in ms when sample.
...
...
@@ -298,8 +302,9 @@ extern SrsMemInfo* srs_get_meminfo();
extern
void
srs_update_meminfo
();
// @see: cat /proc/cpuinfo
struct
SrsCpuInfo
class
SrsCpuInfo
{
public
:
// whether the data is ok.
bool
ok
;
...
...
@@ -315,8 +320,9 @@ struct SrsCpuInfo
extern
SrsCpuInfo
*
srs_get_cpuinfo
();
// platform(os, srs) summary
struct
SrsPlatformInfo
class
SrsPlatformInfo
{
public
:
// whether the data is ok.
bool
ok
;
...
...
trunk/src/core/srs_core.hpp
查看文件 @
c595761
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "0"
#define VERSION_MINOR "9"
#define VERSION_REVISION "
99
"
#define VERSION_REVISION "
100
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "srs"
...
...
trunk/src/rtmp/srs_protocol_handshake.hpp
查看文件 @
c595761
...
...
@@ -56,8 +56,9 @@ namespace srs
* offset: 4bytes
* @see also: http://blog.csdn.net/win_lin/article/details/13006803
*/
struct
key_block
class
key_block
{
public
:
// (offset)bytes
char
*
random0
;
int
random0_size
;
...
...
@@ -81,8 +82,9 @@ namespace srs
* random-data: (764-4-offset-32)bytes
* @see also: http://blog.csdn.net/win_lin/article/details/13006803
*/
struct
digest_block
class
digest_block
{
public
:
// 4bytes
int32_t
offset
;
...
...
@@ -183,8 +185,9 @@ namespace srs
* key: 764bytes
* @see also: http://blog.csdn.net/win_lin/article/details/13006803
*/
struct
c1s1
class
c1s1
{
public
:
union
block
{
key_block
key
;
digest_block
digest
;
...
...
@@ -262,8 +265,9 @@ namespace srs
* digest-data: 32bytes
* @see also: http://blog.csdn.net/win_lin/article/details/13006803
*/
struct
c2s2
class
c2s2
{
public
:
char
random
[
1504
];
char
digest
[
32
];
...
...
trunk/src/rtmp/srs_protocol_rtmp.hpp
查看文件 @
c595761
...
...
@@ -97,8 +97,9 @@ public:
/**
* the response to client.
*/
struct
SrsResponse
class
SrsResponse
{
public
:
int
stream_id
;
SrsResponse
();
...
...
trunk/src/rtmp/srs_protocol_rtmp_stack.hpp
查看文件 @
c595761
...
...
@@ -90,8 +90,9 @@ class SrsChunkStream;
class
SrsProtocol
{
private
:
struct
AckWindowSize
class
AckWindowSize
{
public
:
int
ack_window_size
;
int64_t
acked_size
;
...
...
@@ -221,8 +222,9 @@ private:
/**
* 4.1. Message Header
*/
struct
SrsMessageHeader
class
SrsMessageHeader
{
public
:
/**
* One byte field to represent the message type. A range of type IDs
* (1-7) are reserved for protocol control messages.
...
...
@@ -370,8 +372,9 @@ public:
class
SrsSharedPtrMessage
:
public
SrsMessage
{
private
:
struct
__SrsSharedPtr
class
__SrsSharedPtr
{
public
:
char
*
payload
;
int
size
;
int
shared_count
;
...
...
请
注册
或
登录
后发表评论