summaryrefslogtreecommitdiff
path: root/edk2/StdLib/Include/Protocol/EfiSocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'edk2/StdLib/Include/Protocol/EfiSocket.h')
-rw-r--r--edk2/StdLib/Include/Protocol/EfiSocket.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/edk2/StdLib/Include/Protocol/EfiSocket.h b/edk2/StdLib/Include/Protocol/EfiSocket.h
index 2664f01bd..022a6a5f2 100644
--- a/edk2/StdLib/Include/Protocol/EfiSocket.h
+++ b/edk2/StdLib/Include/Protocol/EfiSocket.h
@@ -613,6 +613,26 @@ AcceptNB (
);
/**
+ Free the socket resources
+
+ This releases the socket resources allocated by calling
+ EslServiceGetProtocol.
+
+ This routine is called from the ::close routine in BsdSocketLib
+ to release the socket resources.
+
+ @param [in] pSocketProtocol Address of an ::EFI_SOCKET_PROTOCOL
+ structure
+
+ @return Value for ::errno, zero (0) indicates success.
+
+ **/
+int
+EslServiceFreeProtocol (
+ IN EFI_SOCKET_PROTOCOL * pSocketProtocol
+ );
+
+/**
Connect to the EFI socket library
@param [in] ppSocketProtocol Address to receive the socket protocol address