文档介绍:学校代码:
学号:
本科毕业设计说明书
(
题目:基于Linux点对点聊天文件传输系统
学生姓名:
学院:信息工程学院
系别:计算机系
专业:计算机科学与技术
班级:
二〇一一年六月
摘要
本文是要在Linux平台下开发一款点对点聊天文件传输系统。实现即时聊天功能和文件的传输。
系统用c语言进行编写,使用到了GTK+库,编程语言编译器进行编译。开发中利用了计算机网络编程的基本理论知识,如TCP/IP协议、客户端/服务器端模式(Client/Server模式)、网络编程的设计方法等。使用了流式套接字实现客户端与服务器端的连接。通过创建多线程实现I/O流的非阻塞状态。使用glade生成可视化图形界面,可以在短时间内建立系统应用原型,然后,对初始原型系统进行不断修正和改进,直到形成可行系统。
综合运用以上技术能够开发出一款基于Linux平台的聊天文件传输系统。受开发人员技术水平的限制,本系统只能归为简单的聊天系统,因为本系统与现在基于windows平台广泛应用的聊天系统的功能还用很大差距,需要用到更多的技术才能够实现更完美功能。
关键词:点对点传输;Socket;glade
Abstract
This paper is to develop a Linux platform file transfer peer chat system. Achieve real-time chat and file transfer
C language for writing system, used the GTK + library and piler pile programming languages. Development work 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, This system 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
第一章主要技术简介 2
LINUX简介 2
SOCKET简介 2
Socket的创建 3
Socket工作过程 3
Socket常用函数 3
GTK 4
GCC概述 4
TCP简介 5
进程与线程 5
进程 5
线程 6
线程与进程的区别 7
图形界面生成工具介绍 7
Glade 7
GTK+ 7
第二章系统设计 9
开发需求 9
运行环境 9
客户需求 9
2.