/** @file\r
The function declaration that provided for Socket Interface.\r
\r
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
#define _SOCK_IMPL_H_\r
\r
#include "Socket.h"\r
+#include "TcpMain.h"\r
\r
/**\r
Signal a event with the given status.\r
IN OUT SOCKET *Sock\r
);\r
\r
+/**\r
+ Cancel the tokens in the specific token list.\r
+\r
+ @param[in] Token Pointer to the Token. If NULL, all tokens \r
+ in SpecifiedTokenList will be canceled. \r
+ @param[in, out] SpecifiedTokenList Pointer to the token list to be checked.\r
+ \r
+ @retval EFI_SUCCESS Cancel the tokens in the specific token listsuccessfully.\r
+ @retval EFI_NOT_FOUND The Token is not found in SpecifiedTokenList.\r
+ \r
+**/\r
+EFI_STATUS\r
+SockCancelToken (\r
+ IN SOCK_COMPLETION_TOKEN *Token,\r
+ IN OUT LIST_ENTRY *SpecifiedTokenList\r
+ );\r
+\r
/**\r
Create a socket with initial data SockInitData.\r
\r