diff options
author | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-10-08 21:39:35 +0000 |
---|---|---|
committer | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-10-08 21:39:35 +0000 |
commit | 4652be0c5a106d0604c2d3274803fc0f844b0433 (patch) | |
tree | be8f424d6afb3baad4753ed03d4ec3f8234a6dcb /StdLib/Include | |
parent | e06a4cd134064590aa1a855ff4b973023279e805 (diff) | |
download | edk2-platforms-4652be0c5a106d0604c2d3274803fc0f844b0433.tar.xz |
Fixed close for socket to properly release the socket context structure and the handle.
Signed-off-by: lpleahy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13802 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/Include')
-rw-r--r-- | StdLib/Include/Protocol/EfiSocket.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/StdLib/Include/Protocol/EfiSocket.h b/StdLib/Include/Protocol/EfiSocket.h index 2664f01bdb..022a6a5f22 100644 --- a/StdLib/Include/Protocol/EfiSocket.h +++ b/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
|