正在显示
9 个修改的文件
包含
25 行增加
和
0 行删除
trunk/doc/amf0_spec_121207.pdf
0 → 100644
不能预览此文件类型
trunk/doc/amf3_spec_121207.pdf
0 → 100644
不能预览此文件类型
trunk/doc/rtmp.part1.Chunk-Stream.pdf
0 → 100644
不能预览此文件类型
trunk/doc/rtmp.part2.Message-Formats.pdf
0 → 100644
不能预览此文件类型
trunk/doc/rtmp.part3.Commands-Messages.pdf
0 → 100644
不能预览此文件类型
trunk/doc/rtmp_specification_1.0.pdf
0 → 100644
不能预览此文件类型
trunk/doc/video_file_format_spec_v10_1.pdf
0 → 100644
不能预览此文件类型
| @@ -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 |
-
请 注册 或 登录 后发表评论