Beijing Institute of Electronic Technology (BESTI)
Real Inspection report
Course: Information Security design Basic class: 1353
Name: Guo Hao li hai Empty
Study No.: 20135327 20135329
Score: Instructor: Lou Jia Peng Experimental Date: 2015.11.24
Experiment level: Preview degree: Experiment time: 15:30~18:00
Instrument Group: Compulsory/Elective: Experiment Number: 5
Experiment Name: Experiment Three: Communication protocol design
Experimental purposes and requirements: Master in ARM boards implement a simple WEB server process.
Learning in ARM on the Development Board SOCKET network programming.
Learning Linux under the signal () the use of functions.
Experimental instrument:
Name |
Model |
Number |
ARM Experiment Box |
|
1 |
Pc |
|
1 |
Experiment contents, steps and experience:
1. Connect the experimental box power, use serial line, line, network cable, connect the experiment box and the host
2. Configure the environment according to the experimental one
3. Copy the WS folder to the BC shared folder
4. Modify Makefile
5. Run make to generate the executable file httpd
6. Use the NFS service mode to download the HTTPD to the Development Board and copy the test page for debugging, in this case the index test page.
1. The understanding of the experiment process, the understanding of the knowledge point in the experiment instruction book.
(1). Signal () function
Signal (SIGHUP, sig_ign);
Signal signal function, the first parameter represents the signal value to be processed (SIGHUP), the second parameter is a handler function or a representation, here, sig_ign means ignoring SIGHUP that registered signal.
Sighup is related to console operation, when the console is closed, the system will send HUP signal to all processes that have console SessionID, the default HUP signal action is exit, if a remote login starts a service process and closes the connection when the program is running, it will cause the service process to exit , so the General Service process starts with the Nohup tool or writes a daemon.
2. Problems encountered during the experiment and solutions.
Failed to make a success.
Workaround: Modify the makefile as follows:
The basic experiment of information security system Design Five: Communication protocol design 20135327 Guo Hao 20135329 li Hai-air