会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
kilen
博客园
首页
新随笔
联系
管理
订阅
1
2
3
4
下一页
2018年8月22日
boost asio
摘要: 摘自: https://mmoaay.gitbooks.io/boost-asio-cpp-network-programming-chinese/content/Chapter2.html asio封装了操作系统的select、kqueue、poll/epoll I/O等机制,实现异步IO模型。在
阅读全文
posted @ 2018-08-22 00:26 kilen
阅读(220)
评论(0)
推荐(0)
2018年8月18日
gdb 调试
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2018-08-18 23:38 kilen
阅读(20)
评论(0)
推荐(0)
socket
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2018-08-18 23:28 kilen
阅读(4)
评论(0)
推荐(0)
2018年6月29日
C++ map.insert: pair和make_pair区别
摘要: 1 C++ map.insert: pair和make_pair区别 2 \*********************************\ 3 map temp; 4 1. temp[1] = "template"; 5 2.temp.insert(pair(1, "template")); 6 3.temp.insert(make_pair(1...
阅读全文
posted @ 2018-06-29 11:28 kilen
阅读(8686)
评论(0)
推荐(0)
2018年6月15日
valgrind 内存调试工具
摘要: 一、valgrind 是运行在linux系统下的内存调试工具,支持很多对象:memcheck、addrcheck、cachegrind、Massif、helgrind、Callgrind等。使用valgrind时,必须指明想用的对象,若是省略对象名,默认运行memcheck。(目前只用到memche
阅读全文
posted @ 2018-06-15 23:12 kilen
阅读(448)
评论(0)
推荐(0)
2018年6月2日
centos7 firewall 相关
摘要: 1、centos 6 是iptables, 7 开始就以firewalld代替iptables; 2、systemctl stop firewalld.service 停 systemctl start firewalld.service 开 systemctl enable iptables.se
阅读全文
posted @ 2018-06-02 11:17 kilen
阅读(154)
评论(0)
推荐(0)
2018年4月14日
BOOST LOG
摘要:
阅读全文
posted @ 2018-04-14 21:18 kilen
阅读(120)
评论(0)
推荐(0)
2017年8月16日
linux timer operate
摘要: 1、gettimeofday() > http://www.linuxidc.com/Linux/2012-06/61903.htm (一般)
阅读全文
posted @ 2017-08-16 11:34 kilen
阅读(121)
评论(0)
推荐(0)
2017年7月14日
string int 相互转换
摘要: 1、string转int string str = "1234"; int a; a = stoi(str) > C++11 uint32_t b = stoul(str) > C++11 a = atoi(str.c_str()); { const char *c_str(); c_str()函数
阅读全文
posted @ 2017-07-14 19:59 kilen
阅读(262)
评论(0)
推荐(0)
2017年7月6日
shared_ptr(作为局部变量返回)
摘要: 智能指针:shared_ptr 1、一个局部的shared_ptr 作为返回值过程:当shared_ptr 被创建的时候,自身的引用计数 +1,当前引用计数为 1 , 按值返回以后 引用计数 + 1 (拷贝构造函数,就是可以理解为基础类型的拷贝),当前引用计数为 2 ,函数执行完成之后,申请的sha
阅读全文
posted @ 2017-07-06 22:14 kilen
阅读(4444)
评论(0)
推荐(0)
1
2
3
4
下一页
公告