自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 191

原创 c++11标准库学习 atomic

// c++11 标准库使用atomic 自旋锁(只要有锁阻塞等待的锁)#include <iostream> #include <atomic> #include <thread> #include <vector> #include <sstream> ...

2020-02-11 21:32:47 196

转载 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 238

转载 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 137

原创 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 &lt...

2020-01-29 14:07:43 313

原创 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 645

原创 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 89

原创 编译完成的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 104

原创 编译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 319

原创 ffmpeg视频转码示例

extern "C"{#include &lt;libavformat/avformat.h&gt;#include &lt;libswscale/swscale.h&gt;}#pragma comment(lib,"avformat.lib")#pragma comment(lib,"avcodec.lib")#pragma comment(lib,"avutil.lib")#p

2018-12-20 09:25:00 745

原创 ffmpeg进行转封装

#if 0//2018-12-19 ffmpeg进行转封装不进行转码//ffmpeg库4.0.2#include&lt;iostream&gt;#include&lt;thread&gt;extern "C"{#include &lt;libavformat/avformat.h&gt;#include &lt;libswscale/swscale.h&gt;}#pragma...

2018-12-19 08:47:32 886

sourse.zip

nmake /f Makefile.nmake OPENSSL_DIR=D:\learn\LibEvent\sourse\openssl

2020-01-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除