summaryrefslogtreecommitdiff
path: root/StdLib/Include
diff options
context:
space:
mode:
authorlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-08 21:39:35 +0000
committerlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-08 21:39:35 +0000
commit4652be0c5a106d0604c2d3274803fc0f844b0433 (patch)
treebe8f424d6afb3baad4753ed03d4ec3f8234a6dcb /StdLib/Include
parente06a4cd134064590aa1a855ff4b973023279e805 (diff)
downloadedk2-4652be0c5a106d0604c2d3274803fc0f844b0433.zip
edk2-4652be0c5a106d0604c2d3274803fc0f844b0433.tar.gz
edk2-4652be0c5a106d0604c2d3274803fc0f844b0433.tar.bz2
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.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/StdLib/Include/Protocol/EfiSocket.h b/StdLib/Include/Protocol/EfiSocket.h
index 2664f01..022a6a5 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