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

基于Windows套接字实现网络异步通信的原理和实现
引用本文:梁伍七.基于Windows套接字实现网络异步通信的原理和实现[J].安徽广播电视大学学报,2009(1):120-122.
作者姓名:梁伍七
作者单位:安徽广播电视大学,合肥,230022
摘    要:讨论了网络编程的基本模型和工作原理,对面向连接的流式套接字和无连接的数据报套接字两种通信模式进行了比较,分析了Windows套接字编程通常使用异步选择机制的原因。通过聊天室程序的编写,用Visual C++给出了无连接的数据报套接字编写网络异步通信程序的实现过程。

关 键 词:Sockets  网络编程  异步通信

Principle and Implementation of Network Asynchronous Communication Based on Windows Sockets
LIANG Wu-qi.Principle and Implementation of Network Asynchronous Communication Based on Windows Sockets[J].Journal of Anhui Television University,2009(1):120-122.
Authors:LIANG Wu-qi
Institution:Anhui Radio & TV University;Hefei 230022;China
Abstract:This article discusses the basic principles of standard network programming,and compares the two communication models between connection-oriented sockets(SOCK_STREAM) and connectionless-oriented sockets(SOCK_DERAM).This paper analyses the reasons that windows sockets programming adopts asynchronous selection mechanism.Through an example of chat program,the details are given for implementation process of network asynchronous communication programming based on SOCK_DGRAM in VC++.
Keywords:S0ckets
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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