文档详情

局域网点对点系统深度分析#40;思考#41;.doc

发布:2016-06-23约4.76万字共73页下载文档
文本预览下载声明
毕业设计(论文) 局域网点对点通信系统设计    摘 要 所谓网络中的点对点通信是实现网络上不同计算机之间,不经过任何中继设备而直接交换数据或服务的一种技术。由于允许网络中任何一台计算机可以直接连到网络中的其他计算机,并与之进行数据交换,这样既可以消除中间环节,也使得网络上的沟通变得更加容易、更加直接。本文介绍的是一种使用Winsock编程技术,基于TCP/IP协议的、面向连接的流式套接字网络通信程序设计。 本文首先介绍了计算机通信网的基础理论,主要介绍了计算机通信网的组成、通信协议和TCP/IP模型。其次,详细阐述了Visual C++.NET网络通信编程知识,其中重点介绍了窗体设计和Windows Socket。最后给出了利用VC中Winsock控件编写的服务端、客户端通信程序的基本思路,及部分程序。 关键词 点对点;TCP/IP;Socket Abstract Peer to peer communication is a computer communication method which is used in different computers to transmit data or services directly, without other device. As the network allows any computer connect to other computer directly and exchange data with each other, it eliminates intermediate links, make communication much easier, more directly. The paper introduces method through Winsock program , based on TCP/IP and face connect was set up. At first, the paper introduces the base theory of computer communication, include the composition of computer communication network, communication protocol and TCP/IP model. Secondly, elaborate the communication theory of Visual C++.NET, which focuses on Windows Socket and forms design. In the end, we give the basic thoughts of sever and client translated program made by Winsock controller by VC. Keywords  Peer to Peer;TCP/IP;Socket; 目 录 摘要 I Abstract II 目录 III 第1章 绪论 1 1.1 课题背景 1 1.1.1 P2P技术的国内外现状 1 1.1.2 P2P技术的研究成果及发展趋势 2 1.1.3 P2P技术所存在的问题 3 1.2 本文主要研究内容 4 第2章 计算机通信基础及相关原理 5 2.1 计算机通信网通信原理 5 2.1.1 计算机通信的概念 5 2.1.2 计算机通信网的组成及网络结构 6 2.1.3 TCP/IP协议模型 7 2.2 本章小结 9 第3章 Visual C++.NET网络通信编程原理 10 3.1 窗口与消息 10 3.2 MFC应用基础 12 3.3 Windows窗体设计 13 3.4 Windows Socket概念及编程机理 15 3.4.1 Windows Sockets套接字及分类 15 3.4.2 套接字函数 16 3.5 本章小结 20 第4章 软件程序设计 21 4.1 程序流程框图 21 4.2 主要程序及功能 22 4.2.1 TCPSocket类的封装 22 4.2.2 对话框添加相应控件 26 4.2.3 对话框初始化 32 4.2.4 发送和接收数据线程 34 4.3 本章小结 35 结论 36 参考文献 37 致谢 38 附录1 I 附录2 IV 附录3 IX 第1章绪论P2P的英文全称是peer-to-peer,可以理解为的意思,或称为对等网络计算机,通俗的讲就是端到端。当对等计算机在客户机/服务器模式下作为客户机进行操作时,它还包含另外一层可使其具有服务器功能的软件。对等计算机可对其他计算机的要求进行响应。请求和响应范围和方式都根据具体应用程序不同而同。P2
显示全部
相似文档