Function extension on the basis of WebSRV. I. Client: 1. Standard URL is: "http://192.168.1.7:8080/w7h2?disturb=63", where the host address is 192.168.1.7, the port is 8080, the request PNG picture is W7H2, request The interference level is 63 (there are six interference programs). The request interference level is optional, and the server side provides the default interference level. 2. If the request URL is wrong, the error page returned by the server will be obtained. II. Server side: Start command: "./ WebSRV [-P port] [-d 63] [-a accesslog name] [-e erroelog name]". 1. -P Specifies the Listen port number, default is 80; 2. -d Specifies the default interference level, not specified as 29; 3. -A Specifies the AccessLog file name, default is "access.log"; 4. -E Specify ErrorLog File name, default is "error.log"; 5. Parse_request () Decomposes the client request in the URL into request strings and request interference levels, if there is no interference level, the default interference level specified by the server starts . If the customer request is wrong, the error_log () records the error and sets the RFLAG flag 1.6. Detained RFLAG flag, if it is 1, do not call GetPng () and sendfile (), but directly call senderror () . 7. getPng () will generate a PNG request picture and generate an interference image by interference level. 8. SendFile () Returns the number of sent bytes. 9. access_log () Record this connection information. 10. Error_log () Record the incorrect connection information.