基于C#的局域网通信工具的设计与实现

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

学号:本科生毕业论文

论文题目:基于C#的局域网通信工具的设计与实现作者:

专业班级:

指导教师:

2011年 4 月 15 日

I

摘要

分析了目前网络通信系统的现状与不足,设计了一个基于TCP/IP的局域网聊天工具。从Socket入手,实现了面向连接的用户与服务器间点对点异步通信,在此基础上应用了多线程技术,使网络服务器具有了多用户间数据转发的功能,进而解决了局域网多用户间的通信问题。聊天程序分服务器和客户端程序两部分,以Visual Studio 2005为基本开发环境和C# 语言进行编码设计,实验表明该聊天工具能够为局域网内部员工提供一个很好的交流平台,方便了工作上的交流与协同。

本课题开发了一个机遇局域网内部的消息通讯平台。在此平台上可以实现内部用户之间的实时通讯,使用户之间能更及时、更方便有效的沟通信息。实现了局域网内部电子信息化的交流,提高了工作效率。本系统有如下功能:

1、用户注册及修改信息:可以申请自己的账号以及修改自己的信息。

2、信息的接受和发送功能:包括文字信息以及图像信息。

3、查找添加好友功能:能够通过用户名查找到相对应的用户以及添加其为自己的好友请求。

4、聊天记录查看功能:能够查看与用户进行聊天的文字记录,从数据库获得。

关键词:数据库Socket软件工程局域网

II

Abstract

Analysis of the current network status and lack of communication system, designed based on TCP / IP LAN chat tool. Starting from the Socket to realize the user and the server connection-oriented asynchronous communication between the point to point, on this basis, the application of multi-threading technology, the network server has a number of data forwarding functions between users, and then solved the multi-user inter-LAN communication problems. Chat program sub-server and client program in two parts to the basic Visual Studio 2005 development environment and C # language for coding design, experiments show that the local area network chat tool can provide a good internal staff communication platform, facilitating the exchange of work and collaboration.

This topic has developed an opportunity for the news of the local area network communication platform. Can be achieved on this platform real-time communication between internal users, so users can be more timely, more convenient and effective communication of information. Achieved within the LAN exchange of electronic information and improve efficiency. This system has the following functions:

1.and modify user registration information: You can apply for their own

account and modify their own information.

2.the acceptance and sending of information: including text information and

image information.

3.find add friends feature: the ability to find a user name that corresponds to

the user and add it to your friend request.

4.chats, view the features: the ability to see the text chat with the user record

from the database.

Keywords:Database Software Engineering LAN Socket

III

目录

第1章引言 (1)

1.1导论 (1)

1.2课题现状 (2)

1.3开发平台、开发技术的介绍 (3)

1.4本章小结 (3)

第2章需求分析及可行性研究 (4)

2.1需求分析 (4)

2.2可行性研究 (5)

2.3本章小结 (6)

第3章系统的需求分析 (7)

3.1系统W IN32编程 (7)

3.2MFC (9)

3.3TCP/IP协议及WINDOWS SOCKETS网络编程接口 (11)

3.4多线程技术 (14)

3.5本章小结 (16)

第4章概要设计 (17)

4.1总体设计 (17)

4.2界面的设计 (17)

4.3界数据结构设计 (19)

4.4章小结 (20)

第5章详细设计及编码实现 (21)

5.1服务器端 (21)

5.2客户端 (24)

5.8本章小结 (27)

第6章测试 (28)

6.1测试项目 (28)

6.2测试结论 (28)

6.3本章小结 (28)

IV

相关文档
最新文档