1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

rename struct to class. 0.9.100

This commit is contained in:
winlin 2014-05-17 14:59:33 +08:00
parent 2f89c8b2e8
commit c59576146b
7 changed files with 33 additions and 17 deletions

View file

@ -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];

View file

@ -97,8 +97,9 @@ public:
/**
* the response to client.
*/
struct SrsResponse
class SrsResponse
{
public:
int stream_id;
SrsResponse();

View file

@ -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;