实战出精华
用具体的C++网络编程例子来提升你的逼格
John Torjo
Boost.Asio C++ 网络编程...
分类:
其他好文 时间:
2015-02-12 10:44:58
阅读次数:
233
boost 的asio库里有几个定时的器,老的有 deadline_timer, 还有三个可配合 C++11 的 chrono 使用的 high_resolution_timer、steady_timer和 system_timer。 老的 deadline_timer我不太想用了,因为用起来...
分类:
其他好文 时间:
2015-02-11 00:29:26
阅读次数:
521
图:机器人科学家 “夏娃”Date:February 3, 2015Source:University of CambridgeSummary:Eve, an artificially intelligent 'robot scientist' could make drug discovery f...
分类:
其他好文 时间:
2015-02-11 00:28:04
阅读次数:
274
// testc.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include #include using boost::asio::ip::tcp...
分类:
Web程序 时间:
2015-02-10 21:31:25
阅读次数:
221
安装配置Thrift
Thrift的编译器使用C++编写的,在安装编译器之前,首先应该保证操作系统基本环境支持C++的编译,安装相关依赖的软件包,如下所示
sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby...
分类:
系统相关 时间:
2015-02-09 23:05:58
阅读次数:
226
Boost Asio 网络编程 基本用法
flyfish 2015-2-9
IP地址
boost::asio::ip::address表示IP地址,同时支持ipv4和ipv6。
boost::asio::ip::address addr;
addr = addr.from_string("127.0.0.1");
assert(addr.is_v4()); ...
分类:
其他好文 时间:
2015-02-09 18:24:01
阅读次数:
351
最近一直在Window下编译64位的boost,找到这篇博文,好好学习一下: 一直以来都是在Win32环境下Build和使用boost,但现在基本上每天都在64位Win7下工作,所以很有必要把这几天的经验总结下来。和32位环境不同,x64环境下编译得先从开始菜单启动Visual Studio的Vis...
分类:
其他好文 时间:
2015-02-09 12:34:05
阅读次数:
100
1.用VC命令行在boost目录下执行bootstrap.bat会在boost目录下生成bjam.exe2.编译boost 编译32位static lib: bjam stage --toolset=msvc-12.0 --stagedir="D:\third_party\boost_1_5...
分类:
其他好文 时间:
2015-02-06 20:13:17
阅读次数:
161
//
// fox_timer.hpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2014-2015 yoen.xu (181471112 at qq dot com)
//
//说明
//eg: fox_timer::run(io_, func, interval);
// T 为func的返回类型,当T为int的时候(范围值-1...
分类:
其他好文 时间:
2015-02-06 09:30:47
阅读次数:
232
cmake之前需要首先设置环境变量:export BOOST_LIBRARYDIR=$BOOST_ROOT/lib64export BOOST_ROOT=/home/noah/boost_1_57_0然后cmake .make make install应该能用
分类:
其他好文 时间:
2015-02-05 21:44:49
阅读次数:
567