winlin

add rtmp specification

不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
@@ -37,3 +37,17 @@ SrsProtocol::~SrsProtocol() @@ -37,3 +37,17 @@ SrsProtocol::~SrsProtocol()
37 { 37 {
38 } 38 }
39 39
  40 +int SrsProtocol::recv_message(SrsMessage** pmsg)
  41 +{
  42 + int ret = ERROR_SUCCESS;
  43 + return ret;
  44 +}
  45 +
  46 +SrsMessage::SrsMessage()
  47 +{
  48 +}
  49 +
  50 +SrsMessage::~SrsMessage()
  51 +{
  52 +}
  53 +
@@ -32,6 +32,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -32,6 +32,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 32
33 #include <st.h> 33 #include <st.h>
34 34
  35 +class SrsMessage;
  36 +
35 /** 37 /**
36 * the protocol provides the rtmp-message-protocol services, 38 * the protocol provides the rtmp-message-protocol services,
37 * to recv RTMP message from RTMP chunk stream, 39 * to recv RTMP message from RTMP chunk stream,
@@ -45,6 +47,15 @@ public: @@ -45,6 +47,15 @@ public:
45 SrsProtocol(st_netfd_t client_stfd); 47 SrsProtocol(st_netfd_t client_stfd);
46 virtual ~SrsProtocol(); 48 virtual ~SrsProtocol();
47 public: 49 public:
  50 + virtual int recv_message(SrsMessage** pmsg);
  51 +};
  52 +
  53 +class SrsMessage
  54 +{
  55 +public:
  56 + SrsMessage();
  57 + virtual ~SrsMessage();
  58 +public:
48 }; 59 };
49 60
50 #endif 61 #endif