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-10-24 10:58:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b65dfd718af031d7f35f93b34f72b0a19b865686
b65dfd71
1 parent
1bfc238f
add comments for the RTMP packet fields, NULL or never NULL. 2.0.5
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
27 行增加
和
1 行删除
trunk/src/core/srs_core.hpp
trunk/src/rtmp/srs_protocol_stack.hpp
trunk/src/core/srs_core.hpp
查看文件 @
b65dfd7
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "2"
#define VERSION_MINOR "0"
#define VERSION_REVISION "
4
"
#define VERSION_REVISION "
5
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "SRS"
...
...
trunk/src/rtmp/srs_protocol_stack.hpp
查看文件 @
b65dfd7
...
...
@@ -572,10 +572,12 @@ public:
* Command information object which has the name-value pairs.
* @remark: alloc in packet constructor, user can directly use it,
* user should never alloc it again which will cause memory leak.
* @remark, never be NULL.
*/
SrsAmf0Object
*
command_object
;
/**
* Any optional information
* @remark, optional, init to and maybe NULL.
*/
SrsAmf0Object
*
args
;
public
:
...
...
@@ -608,11 +610,13 @@ public:
double
transaction_id
;
/**
* Name-value pairs that describe the properties(fmsver etc.) of the connection.
* @remark, never be NULL.
*/
SrsAmf0Object
*
props
;
/**
* Name-value pairs that describe the response from|the server. ‘code’,
* ‘level’, ‘description’ are names of few among such information.
* @remark, never be NULL.
*/
SrsAmf0Object
*
info
;
public
:
...
...
@@ -650,10 +654,12 @@ public:
/**
* If there exists any command info this
* is set, else this is set to null type.
* @remark, optional, init to and maybe NULL.
*/
SrsAmf0Any
*
command_object
;
/**
* Any optional arguments to be provided
* @remark, optional, init to and maybe NULL.
*/
SrsAmf0Any
*
arguments
;
public
:
...
...
@@ -686,10 +692,12 @@ public:
double
transaction_id
;
/**
* If there exists any command info this is set, else this is set to null type.
* @remark, optional, init to and maybe NULL.
*/
SrsAmf0Any
*
command_object
;
/**
* Response from the method that was called.
* @remark, optional, init to and maybe NULL.
*/
SrsAmf0Any
*
response
;
public
:
...
...
@@ -724,6 +732,7 @@ public:
double
transaction_id
;
/**
* If there exists any command info this is set, else this is set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
command_object
;
// null
public:
...
...
@@ -756,6 +765,7 @@ public:
double
transaction_id
;
/**
* If there exists any command info this is set, else this is set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
command_object
;
// null
/**
...
...
@@ -793,6 +803,7 @@ public:
double
transaction_id
;
/**
* Command information object does not exist. Set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
command_object
;
// null
public:
...
...
@@ -819,6 +830,7 @@ public:
double
transaction_id
;
/**
* If there exists any command info this is set, else this is set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
command_object
;
// null
/**
...
...
@@ -859,10 +871,12 @@ public:
double
transaction_id
;
/**
* If there exists any command info this is set, else this is set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
command_object
;
// null
/**
* the optional args, set to undefined.
* @remark, never be NULL, an AMF0 undefined instance.
*/
SrsAmf0Any
*
args
;
// undefined
public:
...
...
@@ -900,6 +914,7 @@ public:
double
transaction_id
;
/**
* Command information object does not exist. Set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
command_object
;
// null
/**
...
...
@@ -952,6 +967,7 @@ public:
double
transaction_id
;
/**
* Command information object does not exist. Set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
command_object
;
// null
/**
...
...
@@ -990,6 +1006,7 @@ public:
double
transaction_id
;
/**
* Command information does not exist. Set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
command_object
;
// null
/**
...
...
@@ -1069,12 +1086,14 @@ public:
double
transaction_id
;
/**
* Command information does not exist. Set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
command_object
;
// null
/**
* If the play command is successful, the client receives OnStatus message from
* server which is NetStream.Play.Start. If the specified stream is not found,
* NetStream.Play.StreamNotFound is received.
* @remark, never be NULL, an AMF0 object instance.
*/
SrsAmf0Object
*
desc
;
public
:
...
...
@@ -1105,6 +1124,7 @@ public:
double
transaction_id
;
/**
* Command information does not exist. Set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
args
;
// null
public:
...
...
@@ -1136,11 +1156,13 @@ public:
double
transaction_id
;
/**
* Command information does not exist. Set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
args
;
// null
/**
* Name-value pairs that describe the response from the server.
* ‘code’,‘level’, ‘description’ are names of few among such information.
* @remark, never be NULL, an AMF0 object instance.
*/
SrsAmf0Object
*
data
;
public
:
...
...
@@ -1176,11 +1198,13 @@ public:
double
transaction_id
;
/**
* Command information does not exist. Set to null type.
* @remark, never be NULL, an AMF0 null instance.
*/
SrsAmf0Any
*
args
;
// null
/**
* Name-value pairs that describe the response from the server.
* ‘code’,‘level’, ‘description’ are names of few among such information.
* @remark, never be NULL, an AMF0 object instance.
*/
SrsAmf0Object
*
data
;
public
:
...
...
@@ -1238,6 +1262,7 @@ public:
/**
* Name-value pairs that describe the response from the server.
* ‘code’, are names of few among such information.
* @remark, never be NULL, an AMF0 object instance.
*/
SrsAmf0Object
*
data
;
public
:
...
...
@@ -1301,6 +1326,7 @@ public:
std
::
string
name
;
/**
* Metadata of stream.
* @remark, never be NULL, an AMF0 object instance.
*/
SrsAmf0Object
*
metadata
;
public
:
...
...
请
注册
或
登录
后发表评论