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

基于多线程和消息的局域网通信程序实现
引用本文:高书亮,马玉发,杨东凯. 基于多线程和消息的局域网通信程序实现[J]. 计算机工程与设计, 2008, 29(2): 323-325,384
作者姓名:高书亮  马玉发  杨东凯
作者单位:1. 北京航空航天大学,电子信息工程学院,北京,100083
2. 唐山市质量装备研究所,河北,唐山,063000
摘    要:目前大多数的局域网通信程序工作在服务器/客户机模式下.在此模式下的应用程序工作过程相对复杂且消耗资源较多.介绍了一种基于多线程技术和Windows消息机制的局域网通信程序的实现过程,使得两台网内主机可以在对等模式而不是传统的服务器/客户机模式下进行数据传输,从而简化了常见局域网通信程序编制中较为复杂的工作过程,实现了一种相对便捷的网络数据传输方式.

关 键 词:多线程  网络通信  消息机制  对等模式  服务器/客户机
文章编号:1000-7024(2008)02-0323-03
收稿时间:2007-01-29
修稿时间:2007-01-29

Implementation for network communication based on multithread and message
GAO Shu-liang,MA Yu-fa,YANG Dong-kai. Implementation for network communication based on multithread and message[J]. Computer Engineering and Design, 2008, 29(2): 323-325,384
Authors:GAO Shu-liang  MA Yu-fa  YANG Dong-kai
Abstract:Presently, most network-communication programmes are running under the client/server mode. The mode has a more complex running process and takes more resources. A new design of network-communication program, based on the multithreading technology and Windows message mechanism, is proposed. The program renders two hosts to transfer data in the peer-to-peer mode. Thus, the relative complex designing of network-communication program will be simplified and a convenient manner for data transferring can be realized in the network.
Keywords:multithread   network communication   message mechanism   P2P   server/client
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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