多用户网络版学生学藉管理系统说明书

  • 格式:doc
  • 大小:400.00 KB
  • 文档页数:34

多用户网络版学生学藉管理系统课程设计说明书课程名称 : 嵌入式linux应用程序设计年级/专业/班 : 2009级软件工程1班学生姓名 : 郑宇翔刘丹易吉华王志远李加华甘云陈雪学号 : 09436111、12、13、14、15、16、17 指导教师 : 刘泽平开题时间 : 2012 年 03 月 14 日完成时间 : 2012 年 04 月 07 日目录摘要 (3)一、引言 (6)二、设计目的与任务 (6)1、本课程设计的目的 (6)2、本课程设计的任务 (7)三、设计方案 (7)1、需求分析 (7)1.1 问题描述 (7)1.2 功能要求 (7)1.3 问题的解决方案 (8)2、概要设计 (8)2.1 设计图 (8)2.2 数据结构 (10)2.3 函数设计 (10)3、详细设计 (11)4、程序清单 (14)服务器主要功能函数 (14)四、程序调试与体会 (26)1、程序调试 (26)2、体会 (27)五、运行结果 (28)六、参考文献 (33)摘要嵌入式Linux是一种嵌入到硬件设备的操作系统,也是一种功能强大的应用程序开发平台。

支持C语言开发,既有C语言自带的库函数,也有嵌入式Linux 自己的系统C库,在目前的嵌入式软件开发行业有着举足轻重的作用。

在嵌入式Linux应用程序设计中主要有以下特点:网络、多用户、I/O、socket、进程控制、进程通信和线程等。

学好嵌入式Linux应用程序设计绝不是纯技术问题,需要综合考虑多方面的因素,加深对网络编程和底层通信的理解。

因此必须强调多上机实践。

本课程设计通过C实现客户端和服务器之间的通信,客户端发出请求,服务器实现增、删、改、查等操作,然后返回相关信息给客户端。

本课程设计通过socket实现客户端和服务器之间的通信。

服务器生产自己的socket流,把自己的端口绑定出去,然后监听有无客服端的链接。

客服端也生产自己的socket流,然后链接服务器,用系统定义好的struct message结构体传输消息,通过send_msg()和rev_msg()函数接发消息。

如客户端发送注册消息给服务器,在客户端完成账号和密码的输入,服务器接收到消息后进行验证,验证无误后写入文件并发送注册成功信息给客户端。

在设计过程中,我们用心的从一个开发项目的程序员的角度出发并解决了自己在程序中的多处不足和缺陷。

例如在录入学生学籍信息时,设计了关于数据有效性的操作等。

在系统的设计中我们加强了界面的美观设计,使程序在简洁的基础上可读更强,更人性化!最后我们在设计过程中也尝试了创新的方法,也收到了很好的效果。

总之,通过此课程设计,我们都感觉到自己在整体上有了一个很大的提高,知识更加系统化,理论化,我们会继续努力课不断地专研关键字:网络、多用户、I/O、socket、进程控制、进程通信、线程。

AbstractEmbedded Linux is a kind of embedded hardware equipment to the operating system, is also a powerful application development platform. Support C language development, both C language own library function, also have embedded Linux systems C library, in the present embedded software development industry has a pivotal role. In embedded Linux applications design basically has the following characteristics: network, many users, I/O, socket, process control, process, communication and thread, etc. Learn embedded Linux application design is not pure technical problems, takes into account many factors, deepen our understanding of the network programming and the bottom of the communication understanding. So must emphasize more practice. The course is designed to achieve by C client and server of communication between the, the client is requested, increase, delete, server practice, check the function, and then returns to the information related to the client.This course design through the socket realize the client and the server of the communication between. Server socket of their production flow, oneself of the port binding go out, and then listening for the customer service links. The production of their customer service and socket flow, and then link server, with good struct message system defined structures transmission news, through the send_msg () () function and rev_msg receiver news. If client sends messages to the server registered at the client complete account and password input, the server receives news verification, verification and written to the file and send information to the client registered success.In the design process, we have the intention of a development project from the point of view of the programmers and solved their in the programthe shortage and defects. For example in the student status information input students, about the effectiveness of the design data manipulation, etc. In the design of the system, we strengthened the interface of the beautiful design, makes the program in concise basis can be read, stronger, more human! Finally, we in the design process and try innovative ways, also has received the good effect. All in all, through this course design, we all feel on the whole have a greatly increased, knowledge more systematic and theoretical, we will continue to work hard lessons constantly grinds onlyKey word: network, many users, I/O, socket, process control, process communication, thread.《嵌入式linux应用程序设计》课程设计 -----多用户网络版学生学藉管理系统一、引言随着人们生活水平的提高,计算机发展异常迅速。

如今,计算机已经深入到我们社会的各个领域,计算机的使用也已不再局限于科学计算,它已进入人类社会的各个领域并发挥着越来越重要的作用。

通过计算机对各类问题求解已经成为一种高效、快捷的方式。

嵌入式Linux应用程序设计是一门实践性很强的课程,光靠听课和看书是学不好的。

衡量学习的好坏的标准不是懂不懂。

因此必须强调多编程,多上机实践。

所以开设了这次课程设计,目的在于使学生达到熟练掌握嵌入式LinuxC编程基本知识的技能,掌握其应用程序设计的基本思路和方法,能够利用所学的基本知识和技能,做一个简单的多用户网络版的管理系统。

这对于进一步巩固嵌入式LinuxC编程知识是一个很好的机会。

本课程设计采用嵌入式LinuxC程序设计语言,通过嵌入式LinuxC实现客户端和服务器之间的通信,客户端发出请求,服务器实现增、删、改、查等操作,然后返回相关信息给客户端。

二、设计目的与任务1、本课程设计的目的在嵌入式linux 操作系统环境下,使用linux C编程实现了一个功能相对简单的多用户的字符界面的网络版的学生学藉管理系统。

通过对该简单系统的设计,能够熟悉掌握嵌入式应用程序设计技巧,加深对I/O、socket、进程控制、进程间通信和线程等底层编程的理解,编制结构清晰、风格良好、数据结构适当的linux C程序。

2、本课程设计的任务实现服务端和客户端,服务端为某学校,客户端为教务。

服务端完成系统主要功能模块的实现和数据的存储,客服端完成各种服务请求的操作界面的实现和数据的输入,操作界面以菜单方式工作。

通过这次课程设计,达到更加灵活的运用所学的理论和知识和方法,以及独立分析和解决问题的能力;培养实事求是、认真、严谨的科学态度和刻苦钻研不断创新的精神,逐步建立正确的全局观念。