Font Size: a A A

The Research And Implementation Of The Programming Method Of Building C/S Structure Based On The Linux Pipe Technology

Posted on:2012-03-27Degree:MasterType:Thesis
Country:ChinaCandidate:J K WangFull Text:PDF
GTID:2218330368478692Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the development of Linux operating system, people's approval of it has further increased, thus how to make use of the current technical means to fulfill the needed functions becomes the topic that people concern a lot.The pipe technology which has been long used is a process communication mechanism of Linux operating system. C/S mode is also a very mature pattern in software system architecture. Through designing a simple student management system of C/S structure and making use of the basic and efficient dbm database of Linux, this paper mainly discusses the key and difficult questions in the real application of C programming with the method of the named pipe to achieve the process communication. Practice shows that the application program built with this method is characterized by proper response to the users and incidents, quick running speed, etc. At the same time, the method of building C/S structure through named pipe provided in this thesis has some reference value for the development of C/S mode,The design of the programming method is as follows:Owing to the application of the C/S mode, the design is divided into two parts, server end and client, connecting with each other by the pipe. Both server end and client have three levels. Firstly, at a low level, data exchange among processes is made through the pipe. Codes should be put into the same file. And after being compiled, they will connect with the linked files of the server and client and produce the executable files respectively. Secondly, at a middle level, server and client interface functions. They not only serve for the upper, but also make an operation request for the lower pipe program. Thirdly, the upper server completes the operation of the database, while the upper client completes the user interface.In the implementation of specific practice, the mode of single server and many users is adopted. To achieve the communication of many users and single server through named pipe is the main part that the paper discusses. Besides, the programming of database search is also a difficult problem.
Keywords/Search Tags:Linux, pipe, C/S
PDF Full Text Request
Related items