From 4652be0c5a106d0604c2d3274803fc0f844b0433 Mon Sep 17 00:00:00 2001 From: lpleahy Date: Mon, 8 Oct 2012 21:39:35 +0000 Subject: 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 --- StdLib/Include/Protocol/EfiSocket.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'StdLib/Include') 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 @@ -612,6 +612,26 @@ AcceptNB ( socklen_t * address_len ); +/** + 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 -- cgit v1.2.3