: . 基于Qt的局域网聊天和文件传输软件设计 摘要 随着计算机网络技术的飞速发展,人们对于网络的依赖性也越来越大。通 过网络的局域网通信也越来越受到人们的喜爱,比如说现在非常流行的 QQ局 域网通信软件就解决了人们在网络中交流的需求。 基于Qt的P2P局域网聊天和文件传输软件,是基于 TCP/IP协议中的TCP 和UDP协议完成的一个能够完成局域网通信和传输文件的软件,该软件实现了 局域网内的通信,使用该软件作为通信和传输文件的工具,既简单又安全。 关键词:计算机网络,TCP, UDP ,文件传输; Abstract With the rapid developme nt of computer n etwork tech no logy, people are more and more depe ndent on the n etwork. In sta nt messag ing via the Internet has become more and more popular, for example, it is now very popular QQ in sta nt messagi ng software to solve the n eeds of people in the n etwork com muni catio n. Based on P2P instant chat and file transfer software is based on TCP / IP protocol in the TCP and UDP protocols to complete a to complete the instant messag ing and file tran sfer software, the software realized the LAN com muni cati on, the use of the software as a com muni cati on and file tran sfer tool, which is simple and safe. Key word: computer network, TCP, UDP , file transfer; 1弓I言 1.. 仁 1.. 1.. 1. 2. 需求分析和开发工具 2. 2.. P2P的局域网聊天和文件传输软件的功能 2 2.. 4. 3. 系统总体结构设计 6. 6.. 6. 6. 6 7 4. 功能实现 9.. 9. 9 10 5结果与分析 16 参考文献 17