会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小行动大智慧
学而不思则罔,思而不学则殆~
Debian9.5(Arm)编译mysql-9.5.30
摘要: 官网下载源码包:mysql-boost-5.7.30.tar.gz 解析进入编译目录mysql-5.7.30 执行:cmake -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_BOOST=boost -DCMAKE_
阅读全文
posted @ 2020-09-17 16:38 sermatec江
阅读(239)
评论(0)
推荐(0)
编辑
服务端接收连接代码示例
摘要: #include <event2/event.h> #include <event2/listener.h> #include <string.h> #include <iostream> #include <signal.h> #define SPORT 5001 using namespace
阅读全文
posted @ 2020-06-07 12:19 sermatec江
阅读(350)
评论(0)
推荐(0)
编辑
编译测试程序
摘要: #include <event2/event.h> #include <iostream> using namespace std; int main() { cout << "test libevent.\n"; event_base * base = event_base_new(); if (
阅读全文
posted @ 2020-06-07 12:15 sermatec江
阅读(130)
评论(0)
推荐(0)
编辑
开发环境
摘要: 开发环境说明 linux系统:ubuntu18.04 libevent版本:2.1.8 1 安装依赖环境 apt-get install perl g++ make automake libtool unzip2 zlib编译 tar -xvf zlib-1.2.11.tar.gz cd zlib-
阅读全文
posted @ 2020-06-07 11:37 sermatec江
阅读(163)
评论(0)
推荐(0)
编辑
jsoncpp编译
摘要: 源码获取 地址1:sourceforge.net 版本说明:比较旧的0.5.0版本,使用configure配置文件进行编译; 地址2:github.com 版本说明:包含其他历史版本,但通常下载的版本是0.10.x ,使用cmake编译,编译过程比较麻烦。 交叉编译 1.安装交叉编译工具链,并添加路
阅读全文
posted @ 2020-04-22 13:18 sermatec江
阅读(748)
评论(0)
推荐(0)
编辑
《POSIX多线程程序设计》笔记(3) 线程的创建与使用
摘要: #include <pthread.h> #include "errors.h" void *thread_routine(void *arg) { return arg; } int main(int argc, char *argv[]) { pthread_t thread_id; void
阅读全文
posted @ 2020-03-26 21:03 sermatec江
阅读(192)
评论(0)
推荐(0)
编辑
《POSIX多线程程序设计》笔记(2)作者自己写的两个调试宏函数源码
摘要: 开始看前面几个“闹钟”代码时,没找到errors.h到底在哪儿,原来。。。 #include <pthread.h> #include <stdio.h> #include <errno.h> #include <string.h> int main(int argc, char *argv[])
阅读全文
posted @ 2020-03-23 22:47 sermatec江
阅读(217)
评论(0)
推荐(0)
编辑
《POSIX多线程程序设计》笔记(1)开头的几个闹钟示例
摘要: /*功能:设置一个一次性的定时器。*/#include <stdio.h> #include <string.h> //strlen #include <unistd.h> //sleep #include <stdlib.h> //sscanf int main(int argc ,char *a
阅读全文
posted @ 2020-03-23 22:13 sermatec江
阅读(171)
评论(0)
推荐(0)
编辑
libevent源码剖析(二)
摘要: struct evconnlistener * evconnlistener_new_bind(struct event_base *base, evconnlistener_cb cb, void *ptr, unsigned flags, int backlog, const struct so
阅读全文
posted @ 2020-02-23 12:10 sermatec江
阅读(240)
评论(0)
推荐(0)
编辑
libevent源码剖析(一)
摘要: /* 版本:2.1.11 源码位置:sample/hello-world.c This example program provides a trivial server program that listens for TCP connections on port 9995. When they
阅读全文
posted @ 2020-02-23 11:44 sermatec江
阅读(221)
评论(0)
推荐(0)
编辑
下一页
导航
博客园
首页
联系
订阅
管理
公告