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

基于TCP协议的远程监控系统的实现
引用本文:赵军伟,刘勋,董浩. 基于TCP协议的远程监控系统的实现[J]. 中国测试技术, 2010, 36(1)
作者姓名:赵军伟  刘勋  董浩
作者单位:1. 成都理工大学自动化工程学院,四川,成都,610059
2. 辽宁工程技术大学电气工程控制学院,辽宁,葫芦岛,125105
3. 河南天方药业股份有限公司,河南,驻马店,463000
摘    要:在VC6.0环境下,采用TCP协议和作为程序设计接口的流式套接字(SOCK_STREAM)方式,实现了远程监控系统中数据的准确、实时传输。编程中采用了基于Win32的控制台应用程序,创建和绑定套接字socket,并利用API函数调用,完成了远程的数据和状态监控功能。基本步骤是创建套接字,绑定本地地址和端口,连接通信,接收和发送消息,关闭连接套接字。经实践证明,该系统满足了远程监控对数据传输准确性的需要,达到了预期效果。

关 键 词:TCP协议  远程监控  Win32控制台  套接字socket  API函数调用  

Realization of remote monitoring system based on TCP protocol
ZHAO Jun-wei,LIU Xun,DONG Hao. Realization of remote monitoring system based on TCP protocol[J]. China Measurement Technology, 2010, 36(1)
Authors:ZHAO Jun-wei  LIU Xun  DONG Hao
Affiliation:ZHAO Jun-wei1,LIU Xun2,DONG Hao3(1.College of Automation,Chengdu University of Technology,Chengdu 610059,China,2.College of Electrical , Control Engineering,Liaoning Technical University,Huludao 125105,3.Topfond Pharmaceutical Co.,LTD,Zhumadian 463000,China)
Abstract:Under the environment of VC6.0,local area network inspection and surveillance was implemented by applying TCP communication protocol and the streaming socket.Based on Win32 console application,creating and binding socket and directly calling back API functions were used.The First step is creating socket,the second is binding socket to local address and port,the third is connecting and communicating,the fourth is receiving and transferring data,and the last step is closing the connected socket.The applicatio...
Keywords:TCP protocol  Remote control  Win32 console  Socket  API function call  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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