正在显示
2 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -326,6 +326,7 @@ public: | @@ -326,6 +326,7 @@ public: | ||
| 326 | /** | 326 | /** |
| 327 | * decode packet from message payload. | 327 | * decode packet from message payload. |
| 328 | */ | 328 | */ |
| 329 | + // TODO: use protocol to decode it. | ||
| 329 | virtual int decode_packet(SrsProtocol* protocol); | 330 | virtual int decode_packet(SrsProtocol* protocol); |
| 330 | /** | 331 | /** |
| 331 | * get the decoded packet which decoded by decode_packet(). | 332 | * get the decoded packet which decoded by decode_packet(). |
| @@ -345,6 +346,7 @@ public: | @@ -345,6 +346,7 @@ public: | ||
| 345 | * @stream_id, the id of stream which is created by createStream. | 346 | * @stream_id, the id of stream which is created by createStream. |
| 346 | * @remark, user never free the pkt, the message will auto free it. | 347 | * @remark, user never free the pkt, the message will auto free it. |
| 347 | */ | 348 | */ |
| 349 | + // TODO: refine the send methods. | ||
| 348 | virtual void set_packet(SrsPacket* pkt, int stream_id); | 350 | virtual void set_packet(SrsPacket* pkt, int stream_id); |
| 349 | /** | 351 | /** |
| 350 | * encode the packet to message payload bytes. | 352 | * encode the packet to message payload bytes. |
-
请 注册 或 登录 后发表评论