07 2022 档案

摘要:class RtcpHeader { public: #if __BYTE_ORDER == __BIG_ENDIAN //版本号,固定为2 uint32_t version: 2; //padding,固定为0 uint32_t padding: 1; //reception report cou 阅读全文
posted @ 2022-07-27 17:20 泽良_小涛 阅读(185) 评论(0) 推荐(0) 编辑
摘要:与Sender Report相比,少了sender info。 阅读全文
posted @ 2022-07-27 15:26 泽良_小涛 阅读(69) 评论(0) 推荐(0) 编辑
摘要:class RtcpHeader { public: #if __BYTE_ORDER == __BIG_ENDIAN //版本号,固定为2 uint32_t version: 2; //padding,固定为0 uint32_t padding: 1; //reception report cou 阅读全文
posted @ 2022-07-27 15:07 泽良_小涛 阅读(324) 评论(0) 推荐(0) 编辑
摘要:推流数据开始前用record命令。回复的代码如下 void RtspSession::handleReq_RECORD(const Parser &parser){ if (_sdp_track.empty() || parser["Session"] != _sessionid) { send_S 阅读全文
posted @ 2022-07-22 17:30 泽良_小涛 阅读(173) 评论(0) 推荐(0) 编辑
摘要:setup要接收两次,指明流媒体的传输方式 。 代码如下 void RtspSession::handleReq_Setup(const Parser &parser) { //处理setup命令,该函数可能进入多次 int trackIdx = getTrackIndexByControlUrl( 阅读全文
posted @ 2022-07-22 15:29 泽良_小涛 阅读(163) 评论(0) 推荐(0) 编辑
摘要:基类转换为子类,dynamic_cast普通的类,dynamic_pointer_cast为智能指针时。 https://blog.csdn.net/jiayizhenzhenyijia/article/details/98209529 阅读全文
posted @ 2022-07-21 14:33 泽良_小涛 阅读(118) 评论(0) 推荐(0) 编辑
摘要:ZLMedia 、sdp 阅读全文
posted @ 2022-07-20 18:07 泽良_小涛 阅读(138) 评论(0) 推荐(0) 编辑
摘要:分隔字符非常有用的https://blog.csdn.net/red_red_red/article/details/84260967 阅读全文
posted @ 2022-07-19 16:36 泽良_小涛 阅读(14) 评论(0) 推荐(0) 编辑
摘要:将一个字符串string 通过分隔符存入到一个vector中。 vector<string> split(const string &s, const char *delim) { vector<string> ret; size_t last = 0; auto index = s.find(de 阅读全文
posted @ 2022-07-19 15:12 泽良_小涛 阅读(24) 评论(0) 推荐(0) 编辑
摘要:随机数的产生。 https://blog.csdn.net/qq_41904635/article/details/104462373 阅读全文
posted @ 2022-07-18 12:00 泽良_小涛 阅读(77) 评论(0) 推荐(0) 编辑
摘要:将左值变为右值使用。 https://blog.csdn.net/Huoon/article/details/113917219 阅读全文
posted @ 2022-07-16 15:08 泽良_小涛 阅读(30) 评论(0) 推荐(0) 编辑
摘要:1.RTSP协议的处理在 RtspSplitter::onRecvHeader中进行。 2.RTSP协议中SDP的处理在RtspSplitter::onRecvContent中进行。 3.收到的RTSP数据在Parser类中Parse函数解析后存到和相关的成员变量中,各个key和value的值通过函 阅读全文
posted @ 2022-07-14 14:37 泽良_小涛 阅读(349) 评论(0) 推荐(0) 编辑
摘要:map不允许重复,multimap允许重复。 https://blog.csdn.net/CV_Jason/article/details/83818549。 阅读全文
posted @ 2022-07-14 13:19 泽良_小涛 阅读(70) 评论(0) 推荐(0) 编辑
摘要:函数后面加override关键字的,继承类中必须重写。 https://www.qb5200.com/article/324176.html 阅读全文
posted @ 2022-07-14 13:13 泽良_小涛 阅读(254) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_41694204/article/details/82620467 区分不区分在小写。 阅读全文
posted @ 2022-07-14 10:38 泽良_小涛 阅读(38) 评论(0) 推荐(0) 编辑
摘要:C++11新特性之十一:emplace 阅读全文
posted @ 2022-07-13 15:29 泽良_小涛 阅读(31) 评论(0) 推荐(0) 编辑
摘要:1.CMake编译时支持GDB调试 阅读全文
posted @ 2022-07-13 13:56 泽良_小涛 阅读(51) 评论(0) 推荐(0) 编辑
摘要:1.【杂项学习】linux下使用Cmake+GDB断点调试 2.GDB gdb 调试 阅读全文
posted @ 2022-07-13 13:47 泽良_小涛 阅读(30) 评论(0) 推荐(0) 编辑
摘要:1.C++11 weak_ptr智能指针(一看即懂) 2.C++智能指针weak_ptr详解 阅读全文
posted @ 2022-07-12 14:27 泽良_小涛 阅读(13) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_38339025/article/details/89161324 阅读全文
posted @ 2022-07-12 14:02 泽良_小涛 阅读(5) 评论(0) 推荐(0) 编辑
摘要:(1)代码 static string dateStr() { char buf[64] = {0}; time_t tt = time(NULL); strftime(buf, sizeof(buf), "%a, %b %d %Y %H:%M:%S GMT", gmtime(&tt)); retu 阅读全文
posted @ 2022-07-12 13:36 泽良_小涛 阅读(107) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示