首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于Socket通信实现数据一致性的工具研究
引用本文:吴卫平,张利芝,唐国平,杨献.一种基于Socket通信实现数据一致性的工具研究[J].工业控制计算机,2010,23(10):82-83,85.
作者姓名:吴卫平  张利芝  唐国平  杨献
作者单位:株洲南车时代电气股份有限公司安全装备事业部,湖南,株洲,412007
摘    要:简述铁路局内部服务器之间交换数据,产生了数据一致性的问题。基于性能要求,系统将文件数据存储于服务器的文件夹中,使得数据库内部机制(如触发器等)难以控制文件数据一致性。针对该问题,基于socket通信设计一种工具实现文件数据一致性。该工具首先设计参数配置文件和利用工厂模式技术使程序访问数据库时不局限于何种数据库以及数据表等,使之成为一个可扩展的独立工具;实时监测数据库并自动实现文件记录的数据一致性;有较强的容错性如网络中断、文件传输中断、数据库连接错误等;产生日志文件以供查询。给出基于VC6.0平台的实现方法。

关 键 词:套接字  TCP/IP  数据一致性

Research of Tool Based on Socket to Fulfill Data Consistency
Abstract:This paper introduces briefly that railway administration on the exchange of data between the internal server,resulting in a data consistency problem.Based on performance requirements,the files are stored in the server folder so that the internal mechanism of the database (such as trigger, etc.) is difficult to control file data consistency.For the problem,a tool based socket communication to achieve data consistency of file is designed.The configuration file of parameters is designed in tool,and the factory model is used to access the database while are not limited to,such as databases and tables to be- come an independent tool for expansion.
Keywords:TCP/IP
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号