文件名称:TestCache
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:6.93kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
封装一个跨进程缓存类
最近做一个项目,需要记录系统里每个进程访问的IP及Port,然后提交到服务端进行分析,我的思路是用一个缓存文件记录所有进程访问网络的信息,然后在主程序中提取记录再提交。
这里面涉及到多进程访问同一个缓存文件的同步问题,于是封装了下面这个类,自我感觉良好,拿出来和大家分享 :)
* 使用类似于环形链表的机制来保证运行效率-An inter-process caching class encapsulates a project recently, need to record the system and each process to access the IP Port, and then submit to the server for analysis, and my idea is to use a cache file records information about all processes access the network, and then records and submit to extract the main program. This process, which involves more than access the same cache file synchronization, then package the following categories, feel good about themselves and share out:)* Use a linked list mechanism similar to the ring to ensure operational efficiency
最近做一个项目,需要记录系统里每个进程访问的IP及Port,然后提交到服务端进行分析,我的思路是用一个缓存文件记录所有进程访问网络的信息,然后在主程序中提取记录再提交。
这里面涉及到多进程访问同一个缓存文件的同步问题,于是封装了下面这个类,自我感觉良好,拿出来和大家分享 :)
* 使用类似于环形链表的机制来保证运行效率-An inter-process caching class encapsulates a project recently, need to record the system and each process to access the IP Port, and then submit to the server for analysis, and my idea is to use a cache file records information about all processes access the network, and then records and submit to extract the main program. This process, which involves more than access the same cache file synchronization, then package the following categories, feel good about themselves and share out:)* Use a linked list mechanism similar to the ring to ensure operational efficiency
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TestCache/FileMap.cpp
TestCache/FileMap.h
TestCache/ReadMe.txt
TestCache/RecodeLog.cpp
TestCache/RecodeLog.h
TestCache/SMutx.cpp
TestCache/SMutx.h
TestCache/StdAfx.cpp
TestCache/StdAfx.h
TestCache/TestCache.cpp
TestCache/TestCache.dsp
TestCache/TestCache.plg
TestCache
TestCache/FileMap.h
TestCache/ReadMe.txt
TestCache/RecodeLog.cpp
TestCache/RecodeLog.h
TestCache/SMutx.cpp
TestCache/SMutx.h
TestCache/StdAfx.cpp
TestCache/StdAfx.h
TestCache/TestCache.cpp
TestCache/TestCache.dsp
TestCache/TestCache.plg
TestCache
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.