摘要
为了原位自动探测海底氢气、氧气、氮气、甲烷等示踪气体含量,同济大学海洋与地球科学学院研制了一套海底示踪气体原位自动检测系统。文中以这套系统的远程控制软件为例,探讨了海底示踪气体原位自动监测系统远程控制软件的设计与实现方法,在VC++2005平台中采用WSAAsync Select模式进行套接字编程,将接收的数据存入链表中,使用后台线程处理数据存储、心跳图显示等耗时操作,让主线程更从容地处理网络事件,确保数据的实时收发。同时提出了一个数据重传机制,从应用程序层次保证了数据传输的完整性和正确性。
For the purpose of in-situ auto-detecting the content of hydrogen,oxygen,nitrogen and methane in the seafloor,the faculty of ocean and earth science in Tongji University has developed an undersea tracer gas in-situ auto-detecting system. Taking the remote con-trol software of this system as a case,an in-depth analysis is conducted on its design and implementation in this paper. By using the WSAAsynSelect model for socket programming on Microsoft Visual C++ 2005,all received data are stored in a link-list,and the time-consuming operations such as data storage and fluctuation graph display are handled by the background threads. Thus the main thread can be more focus and effective on disposing the network events. Real-time communication is achieved. At the same time present a data re-transmission mechanism,which ensures the integrity and correctness of data transfer at the application level.
出处
《计算机技术与发展》
2015年第1期216-220,共5页
Computer Technology and Development
基金
国家"863"高技术发展计划项目(2009AA09Z2487830)
湖南师范大学地图学与地理信息系统校级重点学科建设项目