摘要: 失败原因:打开dump文件失败,权限不足 修改rtp_h264_extractor.lua中dump文件路径为本地路径即可 阅读全文
posted @ 2022-08-04 10:30 张浦 阅读(252) 评论(0) 推荐(1) 编辑
摘要: #! /bin/bash # # drop some packets to simulate network traffic jam # Zhang junpu, 12 09 2021 # ip_arr=($@) # restore iptable rules function clean_up() 阅读全文
posted @ 2021-12-10 15:17 张浦 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 内存测试构建: 工具:gperftools/heap_checker https://gperftools.github.io/gperftools/heap_checker.html 安装google-perftools: apt-get install libunwind-dev apt-get 阅读全文
posted @ 2020-12-09 14:04 张浦 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 493. 翻转对 给定一个数组 nums ,如果 i < j 且 nums[i] > 2*nums[j] 我们就将 (i, j) 称作一个重要翻转对。 你需要返回给定数组中的重要翻转对的数量。 示例 1: 输入: [1,3,2,3,1] 输出: 2 示例 2: 输入: [2,4,3,5,1] 输出: 阅读全文
posted @ 2020-11-28 12:07 张浦 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 编译: ./configure --prefix=/usr/local --enable-ffplay --enable-shared --enable-gpl --enable-libopenh264 --enable-libx264 --enable-libopus --enable-debug 阅读全文
posted @ 2020-11-23 15:38 张浦 阅读(105) 评论(0) 推荐(0) 编辑
摘要: /*** loop_wait.c ***/ #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> // WARNING: Only signa 阅读全文
posted @ 2020-10-29 11:53 张浦 阅读(76) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/3a2df9b7c353 阅读全文
posted @ 2020-08-20 17:00 张浦 阅读(114) 评论(0) 推荐(0) 编辑
摘要: > C思路没错,下标写错了,recheck is necessary A 简单题 class Solution { public: /** * 位移后二进制串的十进制值 * @param str string字符串 二进制字符串 * @param k int整型 循环位移次数 * @return l 阅读全文
posted @ 2020-07-25 23:12 张浦 阅读(164) 评论(0) 推荐(0) 编辑
摘要: A: 字符串模拟,简单题 class Solution { public: /** * 解密密文 * @param str string字符串 密文 * @param d int整型 偏移量 * @return string字符串 */ string decode(string str, int d 阅读全文
posted @ 2020-07-24 17:45 张浦 阅读(110) 评论(0) 推荐(0) 编辑
摘要: linux环境下利用 TrafficControl进行模拟丢包,模拟乱序,模拟延时命令总结: ifconfig获取网络信息 1.设置延时 延时:sudo tc qdisc add dev eth0 root netem delay 30ms 范围内延时(10-50ms):sudo tc qdisc 阅读全文
posted @ 2020-07-03 17:43 张浦 阅读(637) 评论(0) 推荐(1) 编辑