X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=AppPkg%2FApplications%2FSockets%2FWebServer%2FWebServer.h;h=a5dcea49698ff9fd907ea74c622202f855571852;hp=0eee114832b0318a7d9c1021c6312a0c87c5f8ca;hb=f6e5cdd5cfa100e777db38e5f7b26b7ffcf41330;hpb=59bc059327dd519619fa437c0d7c941e090cd8a3 diff --git a/AppPkg/Applications/Sockets/WebServer/WebServer.h b/AppPkg/Applications/Sockets/WebServer/WebServer.h index 0eee114832..a5dcea4969 100644 --- a/AppPkg/Applications/Sockets/WebServer/WebServer.h +++ b/AppPkg/Applications/Sockets/WebServer/WebServer.h @@ -86,7 +86,7 @@ #define DEBUG_SOCKET_POLL 0x00080000 ///< Display the socket poll messages #define DEBUG_PORT_WORK 0x00040000 ///< Display the port work messages -#define DEBUG_SERVER_TIMER 0x00020000 ///< Display the socket poll messages +#define DEBUG_SERVER_LISTEN 0x00020000 ///< Display the socket poll messages #define DEBUG_HTTP_PORT 0x00010000 ///< Display HTTP port related messages #define DEBUG_REQUEST 0x00008000 ///< Display the HTTP request messages @@ -173,9 +173,10 @@ typedef struct { // // HTTP port management // - BOOLEAN bTimerRunning; ///< Port creation timer status + BOOLEAN bRunning; ///< Web server running EFI_EVENT TimerEvent; ///< Timer to open HTTP port - int HttpListenPort; ///< File descriptor for the HTTP listen port + int HttpListenPort; ///< File descriptor for the HTTP listen port over TCP4 + int HttpListenPort6; ///< File descriptor for the HTTP listen port over TCP6 // // Client port management @@ -377,6 +378,23 @@ DxeServicesTablePage ( OUT BOOLEAN * pbDone ); +/** + Respond with the Exit page + + @param [in] SocketFD The socket's file descriptor to add to the list. + @param [in] pPort The WSDT_PORT structure address + @param [out] pbDone Address to receive the request completion status + + @retval EFI_SUCCESS The request was successfully processed + +**/ +EFI_STATUS +ExitPage ( + IN int SocketFD, + IN WSDT_PORT * pPort, + OUT BOOLEAN * pbDone + ); + /** Respond with the firmware status @@ -445,6 +463,23 @@ IndexPage ( OUT BOOLEAN * pbDone ); +/** + Respond with the Ports page + + @param [in] SocketFD The socket's file descriptor to add to the list. + @param [in] pPort The WSDT_PORT structure address + @param [out] pbDone Address to receive the request completion status + + @retval EFI_SUCCESS The request was successfully processed + +**/ +EFI_STATUS +PortsPage ( + IN int SocketFD, + IN WSDT_PORT * pPort, + OUT BOOLEAN * pbDone + ); + /** Page to reboot the system @@ -723,7 +758,7 @@ EFI_STATUS HttpSendIpAddress ( IN int SocketFD, IN WSDT_PORT * pPort, - IN struct sockaddr_in * pAddress + IN struct sockaddr_in6 * pAddress ); /**