嵌入式linux应用程序设计 课程设计多用户网络版学生学藉管理系统说明书

上传人:汽*** 文档编号:389274244 上传时间:2023-04-20 格式:DOC 页数:34 大小:400.50KB
返回 下载 相关 举报
嵌入式linux应用程序设计 课程设计多用户网络版学生学藉管理系统说明书_第1页
第1页 / 共34页
嵌入式linux应用程序设计 课程设计多用户网络版学生学藉管理系统说明书_第2页
第2页 / 共34页
嵌入式linux应用程序设计 课程设计多用户网络版学生学藉管理系统说明书_第3页
第3页 / 共34页
嵌入式linux应用程序设计 课程设计多用户网络版学生学藉管理系统说明书_第4页
第4页 / 共34页
嵌入式linux应用程序设计 课程设计多用户网络版学生学藉管理系统说明书_第5页
第5页 / 共34页
点击查看更多>>
资源描述

《嵌入式linux应用程序设计 课程设计多用户网络版学生学藉管理系统说明书》由会员分享,可在线阅读,更多相关《嵌入式linux应用程序设计 课程设计多用户网络版学生学藉管理系统说明书(34页珍藏版)》请在金锄头文库上搜索。

1、多用户网络版学生学藉管理系统课程设计说明书课 程 名 称 : 嵌入式linux应用程序设计 年级/专业/班 : 2009级软件工程1班 学 生 姓 名 : 学 号 : 09436111、12、13、14、15、16、17 指 导 教 师 : 开 题 时 间 : 2012 年 03 月 14 日 完 成 时 间 : 2012 年 04 月 07 日目 录摘 要3一、引言6二、设计目的与任务61、本课程设计的目的62、本课程设计的任务7三、设计方案71、需求分析71.1 问题描述71.2 功能要求71.3 问题的解决方案82、概要设计82.1 设计图82.2 数据结构102.3 函数设计103、详

2、细设计114、程序清单14服务器主要功能函数14四、程序调试与体会261、程序调试262、体会27五、运行结果28六、参考文献33摘 要嵌入式Linux是一种嵌入到硬件设备的操作系统,也是一种功能强大的应用程序开发平台。支持C语言开发,既有C语言自带的库函数,也有嵌入式Linux自己的系统C库,在目前的嵌入式软件开发行业有着举足轻重的作用。在嵌入式Linux应用程序设计中主要有以下特点:网络、多用户、I/O、socket、进程控制、进程通信和线程等。学好嵌入式Linux应用程序设计绝不是纯技术问题,需要综合考虑多方面的因素,加深对网络编程和底层通信的理解。因此必须强调多上机实践。本课程设计通过

3、C实现客户端和服务器之间的通信,客户端发出请求,服务器实现增、删、改、查等操作,然后返回相关信息给客户端。本课程设计通过socket实现客户端和服务器之间的通信。服务器生产自己的socket流,把自己的端口绑定出去,然后监听有无客服端的链接。客服端也生产自己的socket流,然后链接服务器,用系统定义好的struct message结构体传输消息,通过send_msg()和rev_msg()函数接发消息。如客户端发送注册消息给服务器,在客户端完成账号和密码的输入,服务器接收到消息后进行验证,验证无误后写入文件并发送注册成功信息给客户端。在设计过程中,我们用心的从一个开发项目的程序员的角度出发并

4、解决了自己在程序中的多处不足和缺陷。例如在录入学生学籍信息时,设计了关于数据有效性的操作等。在系统的设计中我们加强了界面的美观设计,使程序在简洁的基础上可读更强,更人性化!最后我们在设计过程中也尝试了创新的方法,也收到了很好的效果。总之,通过此课程设计,我们都感觉到自己在整体上有了一个很大的提高,知识更加系统化,理论化,我们会继续努力课不断地专研关键字:网络、多用户、I/O、socket、进程控制、进程通信、线程。AbstractEmbedded Linux is a kind of embedded hardware equipment to the operating system, is

5、 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 follo

6、wing 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 communic

7、ation 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 th

8、rough 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 st

9、ruct 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 an

10、d 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 program the shortage and defects. For example in the student status information input students, about the effect

11、iveness 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

12、 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应用程序设计课程设计 -多

13、用户网络版学生学藉管理系统一、引言随着人们生活水平的提高,计算机发展异常迅速。如今,计算机已经深入到我们社会的各个领域,计算机的使用也已不再局限于科学计算,它已进入人类社会的各个领域并发挥着越来越重要的作用。通过计算机对各类问题求解已经成为一种高效、快捷的方式。嵌入式Linux应用程序设计是一门实践性很强的课程,光靠听课和看书是学不好的。衡量学习的好坏的标准不是懂不懂。因此必须强调多编程,多上机实践。所以开设了这次课程设计,目的在于使学生达到熟练掌握嵌入式LinuxC编程基本知识的技能,掌握其应用程序设计的基本思路和方法,能够利用所学的基本知识和技能,做一个简单的多用户网络版的管理系统。这对于

14、进一步巩固嵌入式LinuxC编程知识是一个很好的机会。本课程设计采用嵌入式LinuxC程序设计语言,通过嵌入式LinuxC实现客户端和服务器之间的通信,客户端发出请求,服务器实现增、删、改、查等操作,然后返回相关信息给客户端。二、设计目的与任务1、本课程设计的目的在嵌入式linux 操作系统环境下,使用linux C编程实现了一个功能相对简单的多用户的字符界面的网络版的学生学藉管理系统。通过对该简单系统的设计,能够熟悉掌握嵌入式应用程序设计技巧,加深对I/O、socket、进程控制、进程间通信和线程等底层编程的理解,编制结构清晰、风格良好、数据结构适当的linux C程序。2、本课程设计的任务

15、实现服务端和客户端,服务端为某学校,客户端为教务。服务端完成系统主要功能模块的实现和数据的存储,客服端完成各种服务请求的操作界面的实现和数据的输入,操作界面以菜单方式工作。通过这次课程设计,达到更加灵活的运用所学的理论和知识和方法,以及独立分析和解决问题的能力;培养实事求是、认真、严谨的科学态度和刻苦钻研不断创新的精神,逐步建立正确的全局观念。三、设计方案1、需求分析1.1 问题描述实现服务端和客户端,服务端为某学校,客户端为教务。服务端完成系统主要功能模块的实现和数据的存储,客服端完成各种服务请求的操作界面的实现和数据的输入,操作界面以菜单方式工作。1.2 功能要求1) 用户管理模块:客户端完成用户注册和申请,服务端完成用户验证。2) 学藉输入模块:客户端完成学生学藉相关信息的输入(学号,姓名,性别,年龄,籍贯,系别,专业,班级)。服务端完成对数据的保存,保存成文件。3) 显示学藉模块:客户端提出显示请求,服务端发送相关数据到客服端并显示。4) 删除学生记录模块:客户端提出记录删除请求(按学号),服务端

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号