上一页 1 ··· 100 101 102 103 104 105 106 107 108 ··· 125 下一页

2017年11月28日

摘要: C++利用Crypto++,vs2005环境下的RSA应用 基于Crypto++/Cryptopp的rsa密钥生成,rsa加密、解密,rsa签名、验签 Keys and Formats 使用Crypto++5.5.2完成RSA加解密,真正的把公钥放在字符串内,而不是放在文件内 C++代码重构——从C 阅读全文
posted @ 2017-11-28 18:10 itdef 阅读(434) 评论(0) 推荐(0)

2017年11月17日

摘要: 目前有这样的应用场景,一个频道多人通讯人,每人对应一个通讯队列。多线程中查找频道和个人信息就需要锁定全局信息。 1锁定查找比较耗时。 如果全局信息以频道为索引。 2则查找个人信息需要遍历,极其耗时。 解决办法如下 双哈希表 分别记录个人信息索引与频道映射 ,频道索引与个人映射。这样知道个人信息或者频 阅读全文
posted @ 2017-11-17 23:36 itdef 阅读(343) 评论(0) 推荐(0)

2017年11月14日

摘要: 一个简单的point坐标类 class Point {public: Point():xval(0),yval(0){} Point(int x,int y):xval(x),yval(y){} int x()const { return xval; } int y()const { return 阅读全文
posted @ 2017-11-14 09:22 itdef 阅读(252) 评论(0) 推荐(0)

2017年11月13日

摘要: Vehicle 一个车辆的虚基类 class Vehicle {public: virtual double weight()const = 0; virtual void start() = 0; virtual Vehicle* copy() = 0; virtual ~Vehicle() {} 阅读全文
posted @ 2017-11-13 22:21 itdef 阅读(268) 评论(0) 推荐(0)

2017年11月11日

摘要: 示例代码 1 #include "Util.h" 2 #include "MyAsio.h" 3 #include "TcpConnectionManager.h" 4 #include "SocketMessageRecvDispatchManager.h" 5 /* 6 作 者: itdef 7 阅读全文
posted @ 2017-11-11 13:33 itdef 阅读(330) 评论(1) 推荐(0)

2017年11月6日

摘要: 资料地址 http://en.cppreference.com/w/cpp/thread/condition_variable/wait_until http://www.cnblogs.com/haippy/p/3252041.html 1 // asdasdwa.cpp: 定义控制台应用程序的入 阅读全文
posted @ 2017-11-06 16:23 itdef 阅读(956) 评论(0) 推荐(0)

2017年11月4日

摘要: 本文是学习 boost源码的一些练习 参考文章来自 刘未鹏 C++的罗浮宫(http://blog.csdn.net/pongba) 目录 http://blog.csdn.net/pongba/article/category/37521 检测内嵌类型 检测一个类中是否存在指定的类型 那么只需要利 阅读全文
posted @ 2017-11-04 17:37 itdef 阅读(459) 评论(0) 推荐(0)
摘要: #pragma once #include "Util.h" #include "rapidjson/writer.h" #include "rapidjson/stringbuffer.h" #include "rapidjson/document.h" NAMESPACEBEGIN(DEF) //参考 https ://github.com/qicosmos/SmartDB1.03/b... 阅读全文
posted @ 2017-11-04 13:38 itdef 阅读(1407) 评论(0) 推荐(0)

2017年10月30日

摘要: 记录下 方便查找(最近机器老重装 资料丢失严重) wamp http://www.wampserver.com/en/#download-wrapper https://sourceforge.net/projects/wampserver/files/WampServer%203/WampServ 阅读全文
posted @ 2017-10-30 09:52 itdef 阅读(216) 评论(0) 推荐(0)

2017年10月28日

摘要: 先看LockedQueue.h template <class T, typename StorageType = std::deque<T> >class LockedQueue{......} 一个带锁的多线程可安全访问的类,容器默认使用std::deque 常规代码 push进T类型的元素 p 阅读全文
posted @ 2017-10-28 22:39 itdef 阅读(1178) 评论(0) 推荐(0)
上一页 1 ··· 100 101 102 103 104 105 106 107 108 ··· 125 下一页

导航