Network Communications Programme Use of Asynchronism Socket
本文關(guān)鍵詞:基于消息的異步套接字和多線程技術(shù)網(wǎng)絡(luò)通信編程,,由筆耕文化傳播整理發(fā)布。
基于消息的異步套接字和多線程技術(shù)網(wǎng)絡(luò)通信編程 Network Communications Programme Use of Asynchronism Socket Based On Massage and Multithreading Technology
新浪微博
騰訊微博
豆瓣
人人網(wǎng)
摘要:
在模擬訓(xùn)練系統(tǒng)進(jìn)行氣象參數(shù),本艦參數(shù)和目標(biāo)參數(shù)的傳輸時,為了能使數(shù)據(jù)實時和準(zhǔn)確地傳輸和提高網(wǎng)絡(luò)通信應(yīng)用程序的性能,我們采用基于消息的異步套接字,即使用Windows Sockets的異步選擇函數(shù)WSAAsyncSelect.對數(shù)據(jù)進(jìn)行接收時,根據(jù)數(shù)據(jù)的來源創(chuàng)建相應(yīng)的接收線程接收數(shù)據(jù).這種基于消息的異步套接字并結(jié)合多線程技術(shù),極大地提高了網(wǎng)絡(luò)應(yīng)用程序的性能.
Abstract:
When the simulated trailing 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 Multithreading technology will greatly raised the function of network application program.
本文關(guān)鍵詞:基于消息的異步套接字和多線程技術(shù)網(wǎng)絡(luò)通信編程,由筆耕文化傳播整理發(fā)布。
本文編號:86818
本文鏈接:http://sikaile.net/kejilunwen/wltx/86818.html