文档详情

基于Linux点对点聊天文件传输系统.docx

发布:2017-12-11约1.61万字共27页下载文档
文本预览下载声明
学校代码:学 号: 本科毕业设计说明书(题目:基于Linux点对点聊天文件传输系统学生姓名:学院:信息工程学院系别:计算机系专业:计算机科学与技术班级:指导教师:二 〇 一 一 年 六 月摘 要本文是要在Linux平台下开发一款点对点聊天文件传输系统。实现即时聊天功能和文件的传输。系统用c语言进行编写,使用到了GTK+库,运用gcc编程语言编译器进行编译。开发中利用了计算机网络编程的基本理论知识,如TCP/IP协议、客户端/服务器端模式(Client/Server模式)、网络编程的设计方法等。使用了流式套接字实现客户端与服务器端的连接。通过创建多线程实现I/O流的非阻塞状态。使用glade生成可视化图形界面,可以在短时间内建立系统应用原型,然后,对初始原型系统进行不断修正和改进,直到形成可行系统。综合运用以上技术能够开发出一款基于Linux平台的聊天文件传输系统。受开发人员技术水平的限制,本系统只能归为简单的聊天系统,因为本系统与现在基于windows平台广泛应用的聊天系统的功能还用很大差距,需要用到更多的技术才能够实现更完美功能。关键词:点对点传输;Socket;gladeAbstractThis paper is to develop a Linux platform file transfer peer chat system. Achieve real-time chat and file transferC language for writing system, used the GTK + library and gcc compiler to compile programming languages.Development of computer network programming using the basic theoretical knowledge, such as TCP / IP protocol, client / server mode (Client / Server mode), web programming design methods. Using stream socket client and server-side to achieve connection.Achieved by creating a multi-threaded I/O streams of non-blocking state. Use glade to generate visual graphical interface, the application can create a system prototype in a short time, then, the initial prototype system constantly revised and improved, until the formation of a viable system.Integrated use of these technologies to develop a Linux-based chat file transfer system.By the developers technical limitations,Thissystem can only be classified as a simple chat system, Because the system is now widely used on windows platform chat system also features a large gap with,Need to use more technology to be able to achieve a more perfect function.Keywords:Point-to-point transmission ;Socket ;glade目录引言1第一章主要技术简介21.1 LINUX简介21.2 SOCKET简介21.2.1 Socket的创建31.2.2 Socket工作过程31.2.3 Socket常用函数31.3 GTK41.4 GCC概述41.5 TCP简介51.6 进程与线程51.6.1 进程51.6.2 线程61.6.3 线程与进程的区别71.7 图形界面生成工具介绍71.7.1 Glade71.7.2 GTK+7第二章系统设计92.1 开发需求92.1.1 运行环境92.1.2 客户需求92.2 系统功能描述92.3 系统功能模块划分102.4 系统流程分析10第三章详细设计说明123.1 界面设计123.1.1 界面的生成过程123.1
显示全部
相似文档