054 GTK基于Linux的网络聊天室的设计与实现
                    联系方式 Email: lw510@qq.com      QQ: 497053418       MSN: lw510@qq.com
以下仅为该设计的基本说明介绍,若需要完整的设计和论文,建议您购买本设计.
054 GTK基于Linux的网络聊天室的设计与实现样本
(样本只提供该系统的基本情况介绍,若需要完整的设计和论文,建议您购买本系统,凡是购买本站系统的,本站均根据您的要求,把系统上的开发信息,题目等修改成符合您的要求)
 

本设计包含内容:源代码+毕业论文
论文大概:
 
 
 
 

基于Linux的网络聊天室的设计与实现
摘要:基于资源共享和软件自由的思想,linux成为越来越多技术人员的理想之国,并且不断吸引着更多的人投身这个梦想。作为一个稳定的多用户类unix网络操作系统,linux能提供完美的网络解决方案,出色的胜任网络构建和维护。出于对unix技术优势的出色继承和延续,linux对多种网络协议的支持使得网络解决方案极大的丰富,本服务器所采用的UDP协议,为广播方式的通信,由于不建连接使得通信简单,有弹性。网络聊天室做为互联网热门,自由的沟通和信息的发布成为许多网络爱好者的乐事。成功的实现linux下聊天室的服务端无疑是对网络自由的精神的顶礼膜拜。
 本文详细的描述了基于UDP协议的网络聊天室的实现,论述了当前大环境下linux对软件业的冲击,接着介绍了linux下c开发环境,包括编辑器EMacs和编译器GCC,当然还有图形开发工具GTK,关键技术中论述了网络实现的可行方案和DES加密算法,接着分析了聊天室的可行性,最后介绍了设计实现的具体方法,包括文件数据库、DES加密、UDP网络算法、和GTK图形界面设计。设计实现了聊天室的启动服务、添加、删除、查询用户,踢出有不法言行用户、对用户资料加密等基本功能,并通过UDP协议和客户端实现联接。设计还有很多不足之处、可以进一步优化的地方和设计过程中的心路历程在总结中都有阐述。
关键字:聊天室设计、UDP、DES加密算法、网络方案、GTK图形界面、文件系统数据库
 
 
 
 
 
 

1  Design based on network chatroom of Linux and realizing
Abstract: On the basis of the thought with free resource-sharing and software, linux becomes more and more technical staff's ideal country, and is attracting more persons to join in this ideal constantly。As a steady multi-user unix network operating system, linux can offer the perfect network solution , the outstanding one is competent at network struction and safeguard. Out of the inheritting and extending splendidly of technological advantage to unix, the abundance that linux support to many kinds of procotols makes the network with great solution, UDP agreement that this server adopted, in order to broadcast the communication of the way, because it make communication simple to build joining , flexible. Network it is hot for Internet for chatroom not to make, free communication and issue of information become a lot of network pleasure of fan. Successful realization linux makes the service end of the chatroom and is undoubtedly paid homage to by spirit free to the network.
Detailed realization based on network chatroom of UDP agreement of description of this text, having expounded the fact linux under the heavy present environment to the impact of the software industry, then has recommended c development environment under linux, including editing machine EMacs and compiling device GCC, certainly there is figure developing instrument GTK , has expounded the fact in key technology feasible scheme and DES that the network realizes encrypt algorithms, then has analysed the feasibility of the chatroom , introduced and designed the concrete method to realize finally, including file database , DES encrypt, UDP network algorithm, and GTK figure interface is designed. Design the arrival which has realize the chatroom and serve , add , delete , inquire about users, basic function of kicking out of illegal words and deeds user , encrypting to user's materials etc., and realize linking through UDP agreement and customer end. Is it have a lot of weak point , place and mind experience of design process that can optimize further explain in summarizing to design.
Keyword:chat room design .UDP.DES encrypt algorithm.GTK figure interface.file system  and  database
 
 
 
目录

1  背景 1
1.1 linux介绍 1
1.2 Linux的昨天 1
1.3 Linux的今天 2
1.4 Linux的明天 2
2  LINUX下C程序开发环境 3
2.1 Emacs介绍 3
2.2  GCC/GDB介绍: 3
2.2.3调试和剖析选项 5
3 课题研究方法及关键技术 7
3.1 SOCKET编程技术  : 7
3.2 GTK图形程序开发 8
3.3 多线程技术  : 8
3.4  DES加密算法 : 8
3.5 服务器端方案的选择 9
4 需求分析 9
5 具体方案 11
5.1 后台数据库 11
5.2 DES加密算法 12
5.2.1 具体算法设计 12
5.2.2 DES算法理论图解 14
5.2.3 加密算法源代码 15
5.3 服务器算法 29
5.3.2 服务器源代码 34
5.4 GTK图形界面 47
5.4.1 GTK开发 47
6 结束语及致谢 56
6.1 结束语 56
6.2 致谢 56
8  参考文献 57
9 附录 58
 


4 4 需求分析
就实现基于UDP的网络聊天室服务器端,可预见的需要有稳定可靠的网络解决方案和安全有效的加密算法,保证通信的稳定和数据的安全。对于在LINUX在整合GNOME后开始表现出更为强大的生命力,有必要能在窗口终端显示出图形化的控制台,便于管理员进行简单交互的窗口操作,保证管理使用的准确,迅速,开发成交互的图形窗口界面。由于LINUX对C的完美的支持,采用C编程和编译机。
对于服务器运行的过程如下图所示:
                                 
 失败
                                   成功
 失败
                                   成功
 
 

                    
 

 图4   服务器运行图
 
 
 
 
 
 
                                
 
 
                       
 
 
 
图5.3.1_1 服务器结构图、
 
sendto()/recvfrom fwrite()/fread()

                    
  图5.3.2_2  服务器总结构图
     服务器架构上有前台和后台两部分,数据库对于普通用户为不可见的,只有管理员有操作数据库的权限,并由文件数据库为前台提供用户资料的服务;包括注册认证,验证用户合法性、检索用户、查询用户、删除用户,前台服务器处理从各个客户端发送过来的信号,处理各种信号并响应。
 
 
 
 
 

9 附录
程序运行截图:
 
图9.1 注册新用户
 
                       图9.2 客户端主程序
 
图9.3  管理员登录
 
           图9.4  打印用户信息
 
         图9.5  查询用户窗口
 

 
054 GTK基于Linux的网络聊天室的设计与实现
 

关闭窗口

与本站联系的时候,为了提高效率,请告诉本站您需要的设计编号与题目。如:001VBAC人事管理系统
编码说明:001VBAC人事管理系统,其中001VBAC 为该毕业设计的编号,VB代表开发语言,AC代表数据库(ACCESS)
版权所有:510计算机论文网:http://www.lw510.com/程序制作:510论文
Email: LW510@QQ.COM  QQ: 497053418   MSN: LW510@QQ.COM