码迷,mamicode.com
首页 >  
搜索关键字:boost库    ( 342个结果
详解boost库中的Message Queue .
Message Queue(后文简写成MQ或消息队列)是boost库中用来封装进程间通信的一种实现,同一台机器上的进程或线程可以通过消息队列来进行通迅。消息队列中的消息由优先级、消息长度、消息数据三部分组成。这里需要注意的事,MQ只是简单的将要发送的数据在内存中进行拷贝,所以我们在发送复杂结构或对象...
分类:其他好文   时间:2015-03-13 12:21:04    阅读次数:147
boost库之aiso通信
#include "stdafx.h" #include #include #include #include #include using boost::asio::ip::tcp; #define max_len 1024 class clientSession :public boost::enable_shared_from_this { public: clientS...
分类:其他好文   时间:2015-03-03 20:43:52    阅读次数:189
boost库之uuid
// FirstTest.cpp : 定义控制台应用程序的入口点。 //UUID是University Unique Identifier的缩写,它是一个128位的数字(16字节),不需要有一个中央认证机构就可以创建全国唯一的标示符。别名:GUID #include "stdafx.h" #include #include #include #include #include #inc...
分类:其他好文   时间:2015-03-02 16:59:48    阅读次数:142
boost库之ptree的ini配置文件解析
// FirstTest.cpp : 定义控制台应用程序的入口点。 //ptree解析ini文件,get(treename, translator) :translator类型实例 #include "stdafx.h" #include #include #include using namespace std; int main() { boost::property...
分类:其他好文   时间:2015-03-02 11:18:22    阅读次数:124
boost库之function
// FirstTest.cpp : 定义控制台应用程序的入口点。 //function 存放方法的地址,函数的包装器(function wrapper) //*iterator1 内容为参数传入function #include "stdafx.h" #include #include #include using namespace std; using namespace boos...
分类:其他好文   时间:2015-02-28 14:39:29    阅读次数:146
boost库之bind(与function配合使用)
// FirstTest.cpp : 定义控制台应用程序的入口点。 //bind(&mem,&obj, _1):类成员方法地址,对象地址,_1是占位符 //同一个类的不同对象可以delegate给不同的实现,从而实现不同的行为(myan语) #include "stdafx.h" #include #include #include #include using namespace s...
分类:其他好文   时间:2015-02-28 14:34:18    阅读次数:177
a c fastcgi framework
ccfast这是一个基于FastCGI和C 的基于HTTP的Resuful API开发框架。其依赖于fastcgi库,boost库,libmysql ,libredis,其中用了C 11的特性。前端web服务器我们使用Nginx,需要的配置如下: location ~* ^/ccfast/. \.do$ { fastcgi_pass 127.0.0.1:10...
分类:其他好文   时间:2015-02-26 21:43:35    阅读次数:170
Boost C++库介绍
今天Mayuyu将来讲述一个非常实用的C++库,它叫做Boost C++库。Boost库中加入了一些在实战中非常常用的函数对C++标准进行了扩充,在实际开发中非常有用。   Boost C++的安装包可以在这里下载:http://www.boost.org/   解压后进入目录执行:sh bootstrap.sh。 完成后得到了b2可执行文件,继续执行./b2,最后执行./bjam完成安...
分类:编程语言   时间:2015-02-21 17:43:21    阅读次数:172
thrift的使用
1.下载源代码(tips:到官网上有提升下载那个最快的)wget http://mirrors.cnnic.cn/apache/thrift/0.9.2/thrift-0.9.2.tar.gztar -xf thrift-0.9.2.tar.gzcd thrift-0.9.22.安装boost库(t...
分类:其他好文   时间:2015-02-01 19:01:10    阅读次数:1311
C++ boost库无锁队列多线程并行测试与编译方法
作为C++11 STL参考实现的boost库,不仅支持11标准,而且做了许多扩展,掌握其使用方法,对于提高代码质量,尤其重要。以其多线程并行无锁队列为例,结合代码和说明,演示了无锁boost库的使用和编译方法。...
分类:编程语言   时间:2015-01-31 07:13:32    阅读次数:421
342条   上一页 1 ... 22 23 24 25 26 ... 35 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!