文件名称:TestCache
- 所属分类:
- 系统编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 7kb
- 下载次数:
- 0次
- 提 供 者:
- shi****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
封装一个跨进程缓存类
最近做一个项目,需要记录系统里每个进程访问的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
.........\FileMap.h
.........\ReadMe.txt
.........\RecodeLog.cpp
.........\RecodeLog.h
.........\SMutx.cpp
.........\SMutx.h
.........\StdAfx.cpp
.........\StdAfx.h
.........\TestCache.cpp
.........\TestCache.dsp
.........\TestCache.plg
TestCache
.........\FileMap.h
.........\ReadMe.txt
.........\RecodeLog.cpp
.........\RecodeLog.h
.........\SMutx.cpp
.........\SMutx.h
.........\StdAfx.cpp
.........\StdAfx.h
.........\TestCache.cpp
.........\TestCache.dsp
.........\TestCache.plg
TestCache