]>
git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Sockets/WebServer/Exit.c
1b7c82de9abc12dc2544630c01aa3f7d8f00aa5b
5 Copyright (c) 2011-2012, Intel Corporation. All rights reserved.
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <WebServer.h>
14 Respond with the Exit page
16 @param [in] SocketFD The socket's file descriptor to add to the list.
17 @param [in] pPort The WSDT_PORT structure address
18 @param [out] pbDone Address to receive the request completion status
20 @retval EFI_SUCCESS The request was successfully processed
35 // Send the Hello World page
39 // Tell the web-server to exit
41 mWebServer
.bRunning
= FALSE
;
44 // Send the page header
46 Status
= HttpPageHeader ( SocketFD
, pPort
, L
"Exit" );
47 if ( EFI_ERROR ( Status
)) {
54 Status
= HttpSendAnsiString ( SocketFD
,
58 " Exiting the web-server application.\r\n"
60 if ( EFI_ERROR ( Status
)) {
65 // Send the page trailer
67 Status
= HttpPageTrailer ( SocketFD
, pPort
, pbDone
);
72 // Return the operation status
74 DBG_EXIT_STATUS ( Status
);