summaryrefslogtreecommitdiff
path: root/AppPkg/Applications/Sockets/WebServer/WebServer.h
diff options
context:
space:
mode:
authorlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-09 19:18:06 +0000
committerlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-09 19:18:06 +0000
commitf6e5cdd5cfa100e777db38e5f7b26b7ffcf41330 (patch)
tree29e5a51e8435f044f4614c86802ba7b7d3706077 /AppPkg/Applications/Sockets/WebServer/WebServer.h
parent3bdf9aae5f7f4c5f47fc8f807ae4409dfe3bdd58 (diff)
downloadedk2-platforms-f6e5cdd5cfa100e777db38e5f7b26b7ffcf41330.tar.xz
Merged socket development branch:
* Add TCPv6 support to DataSink * Add TCPv6 support to DataSource * Add GetAddrInfo test application * Add GetNameInfo test application * Fixed copyright date * Completed TFTP server - now downloads files from local directory * Added ports and exit pages to web server * Made PCD values package specific Signed-off-by: lpleahy git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13003 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'AppPkg/Applications/Sockets/WebServer/WebServer.h')
-rw-r--r--AppPkg/Applications/Sockets/WebServer/WebServer.h43
1 files changed, 39 insertions, 4 deletions
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
@@ -378,6 +379,23 @@ DxeServicesTablePage (
);
/**
+ 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
@param [in] SocketFD The socket's file descriptor to add to the list.
@@ -446,6 +464,23 @@ IndexPage (
);
/**
+ 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
@param [in] SocketFD The socket's file descriptor to add to the list.
@@ -723,7 +758,7 @@ EFI_STATUS
HttpSendIpAddress (
IN int SocketFD,
IN WSDT_PORT * pPort,
- IN struct sockaddr_in * pAddress
+ IN struct sockaddr_in6 * pAddress
);
/**