一种基于Socket通信实现数据一致性的工具研究  被引量:2

Research of Tool Based on Socket to Fulfill Data Consistency

在线阅读下载全文

作  者:吴卫平[1] 张利芝[1] 唐国平[1] 杨献[1] 

机构地区:[1]株洲南车时代电气股份有限公司安全装备事业部,湖南株洲412007

出  处:《工业控制计算机》2010年第10期82-83,85,共3页Industrial Control Computer

摘  要:简述铁路局内部服务器之间交换数据,产生了数据一致性的问题。基于性能要求,系统将文件数据存储于服务器的文件夹中,使得数据库内部机制(如触发器等)难以控制文件数据一致性。针对该问题,基于socket通信设计一种工具实现文件数据一致性。该工具首先设计参数配置文件和利用工厂模式技术使程序访问数据库时不局限于何种数据库以及数据表等,使之成为一个可扩展的独立工具;实时监测数据库并自动实现文件记录的数据一致性;有较强的容错性如网络中断、文件传输中断、数据库连接错误等;产生日志文件以供查询。给出基于VC6.0平台的实现方法。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.

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

分 类 号:TP393.05[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象