- 博客(5)
- 资源 (1)
- 收藏
- 关注
转载 expect工具
expect是建立在tcl基础上的一个工具,它用来让一些需要交互的任务自动化地完成。我们首先从一个简单的例子开始,如同在这一节一开始就提到的,我们想设置一个自动的文件下载程序。 我们看一看这样的一个例子脚本:#! /usr/bin/expect spawn ftp 202.199.248.11 expect "Name"
2015-03-18 13:24:45
1439
原创 boost库timed_wait、notify_one配合使用
// scoped_lock使用 //timed_wait、notify_one配合使用,阻塞等到,接收到消息自动运行相当于消息锁//// #include "stdafx.h" #include #include #include #include #include #includeusing namespace std;using namespace boost;
2015-03-10 10:33:44
7999
原创 boost库之aiso通信
#include "stdafx.h"#include #include #include #include #include using boost::asio::ip::tcp;#define max_len 1024class clientSession :public boost::enable_shared_from_this{public: clientS
2015-03-03 19:32:51
1099
原创 boost库之uuid
// FirstTest.cpp : 定义控制台应用程序的入口点。//UUID是University Unique Identifier的缩写,它是一个128位的数字(16字节),不需要有一个中央认证机构就可以创建全国唯一的标示符。别名:GUID#include "stdafx.h"#include #include #include #include #include #inc
2015-03-02 15:09:06
6253
原创 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 10:15:50
4802
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人