首页 | 官方网站   微博 | 高级检索  
     

基于Socket的多平台通讯研究
引用本文:蒋敏,单家芳,孔军.基于Socket的多平台通讯研究[J].计算机工程与应用,2005,41(36):135-137,141.
作者姓名:蒋敏  单家芳  孔军
作者单位:1. 中国科学院等离子体物理研究所,合肥,230031;江南大学,江苏,无锡,214125
2. 中国科学院等离子体物理研究所,合肥,230031
3. 江南大学,江苏,无锡,214125
基金项目:国家“九五”重大科学工程子项目
摘    要:EAST装置中的LHCD控制系统是一个基于多平台的分布式控制系统。由于控制系统中有多种应用需求,因此在系统中采用了QNX,Linux和W indows三种操作系统。文章主要介绍了在QNX,Linux,Windows三种不同的操作系统平台下,如何通过Socket网络编程实现互相通讯,并阐述了自定义通讯协议的设计和实现。测试结果表明,利用BSDSocket API建立的套接字,可以方便地实现三个操作系统平台之间的通讯,并且在长时间、高频率的通讯过程中,具有良好的实时性和可靠性。

关 键 词:QNX  Linux  Windows  Socket  多平台
文章编号:1002-8331-(2005)36-0135-03
收稿时间:2005-04
修稿时间:2005-04

Research of the Communication Based on Socket between Multiple Platforms
Jiang Min,Shan Jiafang,Kong Jun.Research of the Communication Based on Socket between Multiple Platforms[J].Computer Engineering and Applications,2005,41(36):135-137,141.
Authors:Jiang Min  Shan Jiafang  Kong Jun
Affiliation:1. Institute of Plasma Physics,Chinese Academy of Sciences,Hefei 230031; 2.Southern Yangtze University,Wuxi,Jiangsu 214125
Abstract:The LHCD control system in EAST is a distributed control system based on multiple platforms.In this system three different kinds of operating systems are adopted to meet the requirement of the design.They are QNX,Linux and Windows.This paper mainly presents bow to communicate between these operating systems through Socket.In the forth part of the paper a user-defined protocol is introduced.Some results of the experiment are gained to show that it is quite easy to construct a rapid and stable communication with long time and high frequency between different operating systems with BSD Socket API.
Keywords:QNX  Linux  Windows Socket  multiple platforms
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号