基于.NET局域网聊天工具设计

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

基于.NET局域网聊天工具设计

学校:

系:计算机系

专业:小学教育计算机双语

姓名:

完成时间:2012年5月28日

设计(论文)题目:

基于.NET局域网聊天工具设计

设计(论文)要求:

本设计的主要工作是设计一个基于WINDOWS平台的局域网即时聊天工具,具体是采用C\S模式实现用户之间的通信,然后阐述本软件的功能、特点及使用方法,并详细阐述开发本软件所用的相关技术,具体分析本软件的各个模块的功能及实现方法,说明本软件的设计思想及方法。

局域网聊天工具,是在局域网内部使用的,用户之间用来交流的一个工具,一般都具有文本聊天和文件传输功能。局域网聊天软件因其使用简单,系统资源消耗少等优点,成为各企事业单位等的局域网内广泛应用的软件之一。

中文摘要:

随着计算机网络技术的发展,各种各样基于网络的应用也随之诞生,比如基于互联网的信息发布,通信,数据共享等等。局域网的发展也同样迅速。很多政府机构,企业,学校,都是先以一个统一的局域网联结在一起,再分别接入INTERNET。因此基于局域网的即时通信工具,就这样应运而生了。本文提出了一个局域网聊天工具的设计,并在WINDOWS平台上加以了实现。本设计将文本聊天和文件传输等功能综合在一个客户端程序之内,使用C#语言进行网络编程,并进行了人性化的界面设计,使用起来简单方便,并且功能十分合理,又易于扩展以及个性化定制。

关键词:局域网;C/S体系结构;文本聊天;文件传输

英文摘要:

Abstract:Along with the high-speed development of the computer network technology, various of applications which are based on network were born, such as Internet-based information releasing,communications,data sharing and so on. The development of LAN is the same fast. Because of Some government institutions, enterprises and schools constitute a LAN first ,then join into INTERNET, the

real-time LAN-based communication tools emerged. this paper proposed a LAN chat tool designing, and then implement it on WINDOWS platform. The design integrated text-chat and file-transfer and other functions in a client procedure. It used C # language for network programming with designed a user-friendly and easy to use interface , and it's functions are reasonable and easy to extend, as well as customization.

Key words: LAN; C/S Architecture ;text-chat; file-transfer;

目录

1.系统设计.......................................................................................................................... - 1 -1.1系统功能结构 . (1)

1.2系统功能需求 (1)

1.3性能要求 (1)

2.系统模块详细设计 .......................................................................................................... - 2 -2.1文本聊天模块实现 .. (2)

2.2文件传输模块实现 (2)

2.2.1 文件传输接收端工作流程 (2)

2.2.2 文件传输发送界面设计 (3)

3.系统测试.......................................................................................................................... - 3 -3.1系统测试概述 . (3)

3.2白盒测试 (3)

3.3黑盒测试 (4)

4.主要问题及解决 .............................................................................................................. - 4 -4.1多线程问题 .. (4)

4.2套接字异常 (4)

4.3网络流异常 (4)

5.附条(设计图纸) .......................................................................................................... - 6 -

5.附条(设计图纸)5.1设计图纸

客户端服务器界面

图1-1 客户端功能结构

图2-3文件传输接收图

5.2主窗体代码

using System;

using System.Collections.Generic;

using ponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

using Aptech.UI;

using System.Data.SqlClient;

using System.Media;

namespace MyQQ

{

public partial class MainForm : Form

{

int fromUserId;

int friendFaceId;

int messageImageIndex = 0;

public MainForm()

{

InitializeComponent();

}

private void MainForm_Load(object sender, EventArgs e) {

tsbtnMessageReading.Image = ilMessage.Images[0]; ShowSelfInfo();

sbFriends.AddGroup("我的好友");

相关文档
最新文档