局域网飞鸽传书聊天软件的设计与实现

 2023-03-09 08:03

论文总字数:18898字

摘 要

随着互联网进入人们的家庭,在线通讯越来越多,越来越成为不可或缺的一部分,传统的现实生活社交方式大多转向网络平台,因此聊天工具软件林立,如雨后春笋般发展,比如,腾讯公司的QQ与微信、最早聊天软件始祖的ICQ、微软公司的MSN和Skype、兼具短信息功能的飞信与易信等等。

本次开发过程主要优先考虑快速开发,节省开发时间,在短时间内实现我们需要的功能,因此并不打算考虑运行效率更高、开发周期更长的C/C 语言。若考虑到快速开发,往往优先会想到JAVA语言,然而对于开发设计PC平台的桌面聊天工具软件时,JAVA语言的友好性却不是很高,因此,本次开发选择了更适合桌面开发的C#语言。

本次毕业设计要开发的软件为,是一款基于局域网聊天软件。局域网聊天软件,顾名思义,属于即时通讯软件的一种,通常用于只有局域网通信的办公室和管理部门。由于这些环境对安全性要求极为突出,传统的基于移动通讯的手机与短信、基于互联网的即时通讯软件都无法达到极高安全性的标准,因此基于内网的局域网即时通讯软件设计具有一定的必要性。

本次开发将用到UWP平台。Universal Windows Platform,即微软公司的Windows操作系统通用应用平台。在21世纪初的中期,微软公司(Microsoft)发行了Windows 10操作系统与其对应的移动版,并提出了UWP。UWP技术吸收了拥有十年经验的WPF窗体开发技术(Windows Presentation Foundation)和更早更成熟的WinForms窗体开发经验,并引入了跨平台的设计,在安装了Windows 10操作系统的个人电脑和安装了Windows 10移动版操作系统的移动电话上运行。本次设计主要是为了试用新型技术开发,开发的局域网聊天软件主要用于PC桌面平台。

本次开发的软件基于C#.Net平台,本系统采用C/S结构,将数据库和主要的服务放置于服务器上发布,客户端通过访问服务端获取用户列表和用户IP地址,而聊天过程选择了CtoC模式,用户使用APP客户端将消息直接发出,内网转发给其他用户的APP客户端,不通过服务端转发,使效率更高。

关键词:UWP;C#;局域网环境;聊天软件

LAN chat software design of ipmessenger

Abstract

With the Internet into people"s homes, online communication more and more, more and more become an integral part of the traditional social way to real life most of the network platform, so chat software tools everywhere, such as bamboo shoots after a spring rain like development, for example, QQ and WeChat, the Tencent Inc of the earliest ancestor of the chat software ICQ, MSN and Skype, Microsoft Corp with the short message function of Fetion and easecredit etc..

The development process will give priority to rapid development, save development time, and achieve the functions we need in a short time. Therefore, we do not plan to consider the C/C language with higher efficiency and longer development cycle. If taking into account the rapid development, often preferred to think that JAVA language, however, for the development and design of PC platform desktop chat software, friendly JAVA language is not very high, therefore, the development of choice is more suitable for desktop development language C#.

The graduation project to be developed for the software, is a LAN chat software. LAN chat software, as the name suggests, belongs to instant messaging software, and is usually used for offices and management only with LAN communications. Because of these environmental safety requirements is extremely prominent, based on the traditional mobile phone and SMS, mobile Internet based instant messaging software can achieve high safety standards, and so on, it is necessary to intranet LAN instant messaging software design.

This development will use the UWP platform. Universal Windows Platform, that is, Microsoft Corp"s Windows operating system universal application platform. In the middle of the early twenty-first Century, Microsoft Corp (Microsoft) issued the Windows 10 operating system and its corresponding mobile version, and proposed UWP. UWP technology has absorbed the development technology of WPF form with ten years of experience (Windows Presentation Foundation) and earlier and more mature WinForms form development experience, and introduces the design of cross platform, the installation of the Windows 10 operating system of personal computer and installed Windows 10 mobile operating system running on the mobile phone version. The design is mainly to try new technology development, development of LAN chat software, mainly for the PC desktop platform.

The software development based on C#.Net platform, the system uses the C/S structure, the service database and the main server is placed on the release, the client gets the list of users and user IP address by accessing the server, chat and CtoC mode is selected, the user using the APP client will directly send the message, forwarded to other users of the APP network the client, not by forwarding server, leads to higher efficiency.

Key words: UWP; C#; LAN environment; chat software

目 录

第一章 引言 1

1.1即时通讯 1

1.1.1 为什么要有即时通信软件 1

1.1.2 即时通信软件的发展和现状 1

1.1.3 即时通讯软件种类 2

1.2 局域网环境 2

1.2.1 基于局域网的聊天软件开发意义 2

1.2.2 基于局域网的聊天软件适用环境 3

1.3 UWP通用应用 3

1.3.1 UWP的发展 3

1.3.2选用UWP的开发意义 4

1.3.3 关于手机端的开发 4

1.4 TCP和UDP协议 4

1.4.1 TCP(Transmission Control Protocol,传输控制协议) 5

1.4.2 UDP(User Data Protocol,用户数据报协议) 5

第二章 开发工具与环境简介 7

2.1 开发语言 7

2.1.1 C#的简介 7

2.1.2 C#的特性 7

2.2 数据库选取 7

2.2.1 SQL Server 2008 R2介绍 7

2.2.2 SQL Server 2008 R2关键特性 8

2.3 套接字Socket技术 8

2.4 开发模式的选取 8

第三章 需求分析 9

3.1 调查系统规模和目标 9

3.2 设计需求 9

3.3 平台需求 9

3.4 其他需求 9

3.5 可行性分析 9

第四章 概要设计 11

4.1 总体设计结构 11

4.2 系统各个模块设计 11

4.2.1 WEB服务登陆验证模块 11

4.2.2 WEB服务注册验证模块 11

4.2.3 WEB服务用户列表读取模块 11

4.2.4 客户端登陆页面注册模块 12

4.2.5 客户端登陆页面登陆验证模块 12

4.2.6 客户端登陆页面记住密码模块 12

4.2.7 客户端登陆页面快捷登陆模块 12

4.2.8 客户端登陆页面读取凭证模块 12

4.2.9 客户端登陆页面隐身功能模块 12

4.2.10 客户端聊天页面 12

4.2.11 通信功能消息发送模块 12

4.2.12 通信功能消息接收模块 12

第五章 数据库设计 13

5.1 数据库设计 13

剩余内容已隐藏,请支付后下载全文,论文总字数:18898字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;