- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 c++ 网络编程最简单 hello world
linux c++下的最简单的服务端hello world#include <iostream>#include <cstdio>#include <unistd.h>#include <string>#include <cstring>#include <arpa/inet.h>#include <sys...
2020-02-14 14:08:41
239
原创 c++11标准库学习 atomic
// c++11 标准库使用atomic 自旋锁(只要有锁阻塞等待的锁)#include <iostream> #include <atomic> #include <thread> #include <vector> #include <sstream> ...
2020-02-11 21:32:47
253
转载 ffmpeg YUV420P保存H264文件
#include <iostream>#include <thread>#include <stdio.h>extern "C"{#include "libavutil/opt.h"#include "libavutil/channel_layout.h"#include "libavutil/common.h"#include "libavu...
2020-02-10 19:33:10
298
转载 ffmpeg保存YUV
#pragma comment(lib,"avformat.lib")#pragma comment(lib,"avcodec.lib")#pragma comment(lib,"avutil.lib")#pragma comment(lib,"avdevice.lib")#pragma comment(lib,"swresample.lib")#pragma comment(lib,"...
2020-02-10 19:07:17
190
原创 libevent的简单收发demo超时时间为10秒
libevent的简单收发demo超时时间为10秒#include <iostream>#include <event2/event.h>#ifndef _WIN32#include <signal.h>#else#endif#include <thread>#include <errno.h>#include <...
2020-01-29 14:07:43
361
原创 libevent在windows中设置iocp和线程池
#include <event2/event.h>#include <event2/thread.h>#include<event2/listener.h>#ifndef _WIN32#include <signal.h>#else#endif#include <iostream>using namespace std;...
2020-01-28 21:11:22
726
原创 libevent 配置项的粗略记录
/*主要演示libevent的配置选项*/#include<iostream>#include "event2/event.h"#include <event2/thread.h>#include<event2/listener.h>void cb(struct evconnlistener*, evutil_socket_t, struct so...
2020-01-23 23:21:40
118
原创 编译完成的libevent进行测试
注意使用时添加windows的网络路#include<iostream>#include "event2/event.h"#include "event2/listener.h"void cb(struct evconnlistener*, evutil_socket_t, struct sockaddr*, int socklen, void*){ std::co...
2020-01-23 22:02:55
158
原创 编译libevent
本文记录在win10编译libevent的过程1.编译前准备zlib,opensslzlib网址http://www.zlib.net/下载源码解压缩打开vs的dos窗口 32位选择32位窗口这里选择64位,cd 到解压后的文件夹执行nmake /f win32/Makefile.msc 执行后可以看到目录下有lib文件和dll文件和测试文件openssl网址 ...
2020-01-23 20:37:31
401
原创 ffmpeg视频转码示例
extern "C"{#include <libavformat/avformat.h>#include <libswscale/swscale.h>}#pragma comment(lib,"avformat.lib")#pragma comment(lib,"avcodec.lib")#pragma comment(lib,"avutil.lib")#p
2018-12-20 09:25:00
781
原创 ffmpeg进行转封装
#if 0//2018-12-19 ffmpeg进行转封装不进行转码//ffmpeg库4.0.2#include<iostream>#include<thread>extern "C"{#include <libavformat/avformat.h>#include <libswscale/swscale.h>}#pragma...
2018-12-19 08:47:32
947
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人