04 2015 档案

摘要:------------------------------------------------------------------------RPC 功能目标RPC 的主要功能目标是让构建分布式计算(应用)更容易,在提供强大的远程调用能力时不损失本地调用的语义简洁性。为实现该目标,RPC 框架需提... 阅读全文
posted @ 2015-04-14 18:14 廖先生 阅读(1285) 评论(0) 推荐(0) 编辑
摘要:在2000/XP等基于NT 的操作系统中,有一个服务管理器,它管理的后台进程被称为 service。服务是一种应用程序类型,它在后台运行,与 UNIX 后台应用程序类似。服务应用程序通常可以在本地和通过网络为用户提供一些功能,例如客户端/服务器应用程序、Web 服务器、数据库服务器以及其他基于服务器... 阅读全文
posted @ 2015-04-14 15:53 廖先生 阅读(5185) 评论(0) 推荐(0) 编辑
摘要:NO.1ASIO读操作大总结:A.Boos::asio::read同步读方式voidclient::read_data(char*sourse,intnum){ boost::asio::read(socket_own,boost::asio::buffer(sourse,num));}Buffe... 阅读全文
posted @ 2015-04-12 22:30 廖先生 阅读(4385) 评论(0) 推荐(0) 编辑
摘要:Christopher KohlhoffCopyright © 2003-2012 Christopher M. Kohlhoff以Boost1.0的软件授权进行发布(见附带的LICENSE_1_0.txt文件或从http://www.boost.org/LICENSE_1_0.txt)Boost.... 阅读全文
posted @ 2015-04-12 19:27 廖先生 阅读(869) 评论(0) 推荐(0) 编辑
摘要:#include #include #include int main( void ){ TCHAR buffer[] = _T("This is the buffer text"); TCHAR *newstring; _tprintf( _T("Original: %s\n"), b... 阅读全文
posted @ 2015-04-09 17:52 廖先生 阅读(621) 评论(0) 推荐(0) 编辑
摘要:方法1,msdn 有相应的例子,代码贴出来给你看看MSDN有相应Example! #include typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE, PBOOL); LPFN_ISWOW64PROCESS fnIsW... 阅读全文
posted @ 2015-04-08 11:02 廖先生 阅读(695) 评论(0) 推荐(0) 编辑
摘要:在regex_search函数中,会将找到的第一个匹配结果保存到一个smatch类中。然而如果搜索字符串中有多个匹配结果,则需要自己实现了。在smatch中,有两个成员,官方文档如下:iterator first:An iterator denoting the position of the st... 阅读全文
posted @ 2015-04-03 16:59 廖先生 阅读(3551) 评论(0) 推荐(0) 编辑
摘要:C++ 用libcurl库进行http 网络通讯编程百度登陆协议分析!!!用libcurl来模拟百度登陆C++使用libcurl做HttpClient使用libcurl库进行HTTP的下载libcurl部分总结libcurl学习笔记(一)Curl Passing data to a simple f... 阅读全文
posted @ 2015-04-01 16:24 廖先生 阅读(432) 评论(0) 推荐(0) 编辑
摘要:int http_post_file(const char *url, const char *user, const char *pwd, const char *filename){ assert(url != NULL); assert(user != NULL); assert(pwd !=... 阅读全文
posted @ 2015-04-01 15:56 廖先生 阅读(7547) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示