遇见YY

导航

 
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页

2020年11月23日

摘要: 网络拓扑: 仿真结果: python代码: #!/usr/bin/python from mininet.net import Mininet from mininet.node import Controller, RemoteController, OVSController from mini 阅读全文
posted @ 2020-11-23 16:55 一骑红尘妃子笑! 阅读(189) 评论(0) 推荐(0)
 

2020年11月10日

摘要: Combines the elements in the sorted ranges [first1,last1) and [first2,last2), into a new range beginning at result with all its elements sorted.The el 阅读全文
posted @ 2020-11-10 09:38 一骑红尘妃子笑! 阅读(99) 评论(0) 推荐(0)
 

2020年11月3日

摘要: 为了保证在多线程环境下,某个代码段仅仅被调用一次,比如,初始化某个对象,而这个对象只能初始化一次,就可以用std::call_once来保证代码段在多线程环境下只被调用一次。 使用std::call_once时候,需要一个once_flag作为call_once的参数: #include <iost 阅读全文
posted @ 2020-11-03 10:03 一骑红尘妃子笑! 阅读(399) 评论(0) 推荐(0)
 

2020年10月28日

摘要: 在函数‘boost::serialization::singleton_module::is_locked()’中: /usr/include/boost/serialization/singleton.hpp:103:对‘boost::serialization::singleton_module 阅读全文
posted @ 2020-10-28 20:45 一骑红尘妃子笑! 阅读(304) 评论(0) 推荐(0)
 

2020年10月25日

摘要: lock_guard可以简化lock/unlock的写法,同时也更安全,因为lock_guard在构造时会自动锁定互斥量,而在退出作用域后进行析构会自动解锁,从而保证了互斥量的正确操作,避免忘记unlock操作,因此,应尽量用lock_guard。lock_guard用到了RAII技术,这种技术在类 阅读全文
posted @ 2020-10-25 16:07 一骑红尘妃子笑! 阅读(1647) 评论(0) 推荐(0)
 

2020年10月20日

摘要: 在GNU C中允许声明零长度数组作为扩展。零长度数组可以用作结构的最后一个元素,该数组实际上是可变长度对象的标头。 #include <stdio.h> int main() { struct line { int length; char contents[0]; }; int this_leng 阅读全文
posted @ 2020-10-20 16:16 一骑红尘妃子笑! 阅读(355) 评论(0) 推荐(0)
 

2020年10月18日

摘要: 1.ffmpeg命令推流 ffmpeg -re -i in.h264 -vcodec copy -f rtp rtp://127.0.0.1:8888 补充: -re参数,这是一个输入文件的参数,表示以原始帧速率读取输入。 主要用于模拟抓取设备(a grab device)或实时输入流(例如,从文件 阅读全文
posted @ 2020-10-18 10:50 一骑红尘妃子笑! 阅读(1698) 评论(0) 推荐(0)
 

2020年10月17日

摘要: 1:打开VLC播放器。 2:选择媒体菜单,在下拉菜单栏中,选择打开网络串流(快捷键Ctrl + N),输入: udp/h264://@127.0.0.1:8880 或者 udp/h264://@:8880 3:点击播放按钮,使得VLC播放器处于等待码流状态。 4:使用udp协议向主机8880端口发送 阅读全文
posted @ 2020-10-17 19:32 一骑红尘妃子笑! 阅读(1858) 评论(0) 推荐(0)
 

2020年10月12日

摘要: #include <stdio.h> int main() { /***Declaration of non-local variable in 'for' loop***/ for (struct { int i; } s = {0}; s.i < 25; ++s.i) { printf(" \n 阅读全文
posted @ 2020-10-12 14:14 一骑红尘妃子笑! 阅读(234) 评论(0) 推荐(0)
 

2020年10月9日

摘要: #include <string.h> #include <stdlib.h> #include <stdio.h> #include "./fec/fec.h" #define ECC_K 4 #define ECC_N 8 #define ECC_C (ECC_N-ECC_K) #define 阅读全文
posted @ 2020-10-09 19:26 一骑红尘妃子笑! 阅读(340) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页