/** @file\r
The header files of miscellaneous routines for HttpDxe driver.\r
\r
-Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
CHAR8 *RemoteHost;\r
UINT16 RemotePort;\r
EFI_IPv4_ADDRESS RemoteAddr;\r
- \r
+\r
EFI_HANDLE Tcp6ChildHandle;\r
EFI_TCP6_PROTOCOL *Tcp6;\r
EFI_TCP6_CONFIG_DATA Tcp6CfgData;\r
EFI_TCP6_OPTION Tcp6Option;\r
- \r
+\r
EFI_TCP6_CONNECTION_TOKEN Tcp6ConnToken;\r
BOOLEAN IsTcp6ConnDone;\r
EFI_TCP6_CLOSE_TOKEN Tcp6CloseToken;\r
BOOLEAN IsTcp6CloseDone;\r
EFI_IPv6_ADDRESS RemoteIpv6Addr;\r
- \r
+\r
//\r
// Rx4Token or Rx6Token used for receiving HTTP header.\r
//\r
// HTTP message-body parser.\r
//\r
VOID *MsgParser;\r
- \r
+\r
EFI_HTTP_VERSION HttpVersion;\r
UINT32 TimeOutMillisec;\r
BOOLEAN LocalAddressIsIPv6;\r
)\r
\r
/**\r
- The common notify function used in HTTP driver. \r
+ The common notify function used in HTTP driver.\r
\r
@param[in] Event The event signaled.\r
@param[in] Context The context.\r
**/\r
EFI_STATUS\r
HttpCreateTcpRxEvent (\r
- IN HTTP_TOKEN_WRAP *Wrap \r
+ IN HTTP_TOKEN_WRAP *Wrap\r
);\r
\r
/**\r
Close Events for Tcp Receive Tokens for HTTP body and HTTP header.\r
\r
@param[in] Wrap Pointer to HTTP token's wrap data.\r
- \r
+\r
**/\r
VOID\r
HttpCloseTcpRxEvent (\r
@param[in, out] HttpInstance Pointer to HTTP_PROTOCOL structure.\r
@param[in] IpVersion Indicate us TCP4 protocol or TCP6 protocol.\r
\r
- @retval EFI_SUCCESS HTTP_PROTOCOL structure is initialized successfully. \r
+ @retval EFI_SUCCESS HTTP_PROTOCOL structure is initialized successfully.\r
@retval Others Other error as indicated.\r
\r
**/\r
);\r
\r
/**\r
- Check existing TCP connection, if in error state, recover TCP4 connection. Then, \r
+ Check existing TCP connection, if in error state, recover TCP4 connection. Then,\r
connect one TLS session if required.\r
\r
@param[in] HttpInstance The HTTP instance private data.\r
);\r
\r
/**\r
- Check existing TCP connection, if in error state, recover TCP6 connection. Then, \r
+ Check existing TCP connection, if in error state, recover TCP6 connection. Then,\r
connect one TLS session if required.\r
\r
@param[in] HttpInstance The HTTP instance private data.\r
@param[in] Configure The Flag indicates whether need to initialize session.\r
@param[in] TlsConfigure The Flag indicates whether it's the new Tls session.\r
\r
- @retval EFI_SUCCESS The initialization of session is done. \r
+ @retval EFI_SUCCESS The initialization of session is done.\r
@retval Others Other error as indicated.\r
\r
**/\r
@param[in, out] BufferSize The size of buffer to cacahe the header message.\r
@param[in] Timeout The time to wait for receiving the header packet.\r
\r
- @retval EFI_SUCCESS The HTTP header is received. \r
+ @retval EFI_SUCCESS The HTTP header is received.\r
@retval Others Other errors as indicated.\r
\r
**/\r
@param[in] Wrap The HTTP token's wrap data.\r
@param[in] HttpMsg The HTTP message data.\r
\r
- @retval EFI_SUCCESS The HTTP body is received. \r
+ @retval EFI_SUCCESS The HTTP body is received.\r
@retval Others Other error as indicated.\r
\r
**/\r
Clean up Tcp Tokens while the Tcp transmission error occurs.\r
\r
@param[in] Wrap Pointer to HTTP token's wrap data.\r
- \r
+\r
**/\r
VOID\r
HttpTcpTokenCleanup (\r