基于消息的异步套接字和多线程技术网络通信编程  被引量:5

Network Communications Programme Use of Asynchronism Socket Based On Massage and Multithreading Technology

在线阅读下载全文

作  者:赵均伟[1] 欧阳中辉[2] 刘东鑫[1] 

机构地区:[1]海军航空工程学院研究生管理大队,山东烟台264001 [2]海军航空工程学院兵器科学与技术系,山东烟台264001

出  处:《微计算机信息》2009年第30期114-115,103,共3页Control & Automation

摘  要:在模拟训练系统进行气象参数,本舰参数和目标参数的传输时,为了能使数据实时和准确地传输和提高网络通信应用程序的性能,我们采用基于消息的异步套接字,即使用Windows Sockets的异步选择函数WSAAsyncSelect。对数据进行接收时,根据数据的来源创建相应的接收线程接收数据。这种基于消息的异步套接字并结合多线程技术,极大地提高了网络应用程序的性能。When the simulated traning system want to transmit meteorological parameter, this warship parameter and target parameter component,in order to make the data transmitting at real time with accurately, We adopt Asynchronism Socket based on message, the asynchronous selection function WSAAsyncSelect with Windows Sockets. When we receive the data, the corresponding receipt thread are founded according to the source of the data. This kind of Asynchronism Socket baseds on massage combined with Muhithreading technology will greatly raised the function of network application program.

关 键 词:网络通信 消息机制 异步套接字 多线程 

分 类 号:TP319[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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