summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/TcpDxe/Socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'NetworkPkg/TcpDxe/Socket.h')
-rw-r--r--NetworkPkg/TcpDxe/Socket.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/NetworkPkg/TcpDxe/Socket.h b/NetworkPkg/TcpDxe/Socket.h
index 5a63047f90..371e9abd84 100644
--- a/NetworkPkg/TcpDxe/Socket.h
+++ b/NetworkPkg/TcpDxe/Socket.h
@@ -1,7 +1,7 @@
/** @file
Common head file for TCP socket.
- Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -865,6 +865,24 @@ SockClose (
);
/**
+ Abort the socket associated connection, listen, transmission or receive request.
+
+ @param[in, out] Sock Pointer to the socket to abort.
+ @param[in] Token Pointer to a token that has been issued by
+ Connect(), Accept(), Transmit() or Receive(). If
+ NULL, all pending tokens issued by the four
+ functions listed above will be aborted.
+
+ @retval EFI_UNSUPPORTED The operation is not supported in the current
+ implementation.
+**/
+EFI_STATUS
+SockCancel (
+ IN OUT SOCKET *Sock,
+ IN VOID *Token
+ );
+
+/**
Get the mode data of the low layer protocol.
@param[in] Sock Pointer to the socket to get mode data from.